Answers for "text align in html without css"

1

align text 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

Browse Popular Code Answers by Language