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 image
Text after the image.