Full width home advertisement

Welcome Home


Post Page Advertisement [Top]

How To Set Image Alignment in HTML

On default Image will align or place itself at the left side of the page, you can easily use align attribute to set it in the center or right or back to left.

Example

<!DOCTYPE html>

<html>

<head>

<title>Scholars Globe Image Alignment</title>

</head>

<body>

<p>Example</p>

<img src="example.jpg" alt="Test Image" border="2" align="center"/>

<img src="example.jpg" alt="Test Image" border="2" align="right"/>

</body>

</html>

No comments:

Post a comment

Bottom Ad [Post Page]

||