figure tag


Prev Tutorial Next Tutorial

figure tag

Html <figure> tag is used to mark up a photo in the document on the web page.

We know that in html image tag is already available for display images on web browser but html5 introduce new tag <figure> tag to handle the group of diagrams, photos, code listing etc.

Syntax

<!DOCTYPE>
<html>
<body>
<p><strong>Tim Berners-Lee</strong> is known as father of Html. The first publicly available description of HTML was a document called "HTML Tags", first described, on the Internet by Berners-Lee in late 1991.</p>
<figure>
<img src="/html5/images/berners-lee.png" title="berners-lee" alt="berners-lee">
</figure>
</body>
</html>

Result

Tim Berners-Lee is known as father of Html. The first publicly available description of HTML was a document called "HTML Tags", first described, on the Internet by Berners-Lee in late 1991.

berners-lee

Browser supported

Element
<figure>YesYesYesYesYes

Prev Tutorial Next Tutorial

Advertisements




Download Projects