<img> element

The <img> element is an inline element which means it can be inserted anywhere. (e.g. inside text block, inside a table cell, inside list item etc.,)
The element doesn't require an ending element. It is an empty element and is re-placed by the <img/> tag in XHTML
The <img> element requires an src attribute to define the name and the location of the image file.

snippet
<html>
<head></head>
<body>
This text is followed by an image
<img src="../image.jpg">
Text after the image.
</body>
</html>

Output
This text is followed by an imageText after the image.
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +