Saturday 11 January 2014

img tag 1

<!DOCTYPE html>
<html>
<body>

<p>
<img src="foru.jpg" alt="Smiley face" style="float:left" width="42" height="42"> A paragraph with an image. The image will float to the left of this text.
</p>

<p>
<img src="D:\webtechnologies\html\image\foru.jpg" alt="Smiley face" style="float:right" width="42" height="42"> A paragraph with an image. The image will float to the right of this text.
</p>

<p><b>Note:</b> Here we have used the CSS "float" property to align the image; as the align attribute is deprecated in HTML 4, and is not supported in HTML5.</p>

</body>
</html>

No comments:

Post a Comment