figure tag in html

The <figure> tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.
While the content of the <figure> element is related to the main flow, its position is independent of the main flow, and if removed it should not affect the flow of the document.


<!DOCTYPE html>
<html>
<body>
<figure>
  <img src="img_pulpit.jpg" alt="The Pulpit Rock" width="304" height="228">
</figure>
</body>
</html>


Output:
The Pulpit Rock

Comments

Popular posts from this blog

Introduction and Format of HTML

Headings In HTML

dfn tag in html