Answers for "how to align an object in html without css"

1

how to align an object in html without css

<html>
<head>
	<title>Document</title>
</head>
<body>
  <!-- Align Text in Center -->
  <p id='aligned-text' align='center'>this is some text in the center</p>
  <!-- Align Images -->
  <div id="Image-Centered" align='center'>
    <img src='https://images.pexels.com/photos/1761279/pexels-photo-1761279.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500' alt='some image in the center'>
  </div>
  <!-- Without the 'ALIGN' Attribute -->
  <p id='normal-text'>this is some text without alignment</p>
  <img src='https://images.pexels.com/photos/1761279/pexels-photo-1761279.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500' alt='some image in the center'>
  <!-- Got the difference? -->
</body>
</html>
Posted by: Guest on July-29-2021

Code answers related to "how to align an object in html without css"

Browse Popular Code Answers by Language