FIGURE (<figure>) Tag

by Jai 06-Jul-19

0 94


HTML <figure> tag is used to put up a photo in the document on HTML web page. The <figure> tag is placed for self-supporting or independent content like photos, diagrams or codes listing in an HTML web page document. It is optional because If we remove it from document then also it does not affect the flow of the document.

This tag is new in HTML5.

The <figure> tag is written as <figure></figure> with the caption inserted between the start and end tags.

Program:

<!DOCTYPE html>
<html>
<head>
<title> figure Tag</title>
</head>
<body>
<figure>
<img src="codingtag.png" alt="CodingTag"/>
<figcaption>Fig.1.1 - CodingTag Logo</figcaption>
</figure>
</body>
</html>

Output:

FIGURE (<figure>) Tag





Share:


Comments

    No Comments Yet.

Leave a Reply