TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML figure tag

HTML figure tag with examples, html5, forms, input, text, anchor, image, heading, marquee, textarea, paragraph, title, quotes, code etc.

<< Back to HTML

HTML figure tag

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

As we know image tag is already available in HTML to display the pictures on web pages. But HTML 5 <figure> tag is used to handle the group of diagrams, photos, code listing etc. with some embedded content. You can also add a caption for the photo with the help of <figcaption> tag.

HTML figure is new a new tag introduced in HTML5.


HTML figure tag example

<p>The Taj Mahal is widely recognized as "the jewel of Muslim art in India and 
one of the universally admired masterpieces of the world's heritage". It is regarded
 by many as the finest example of Mughal architecture, a style that combines elements
 from Islamic, Persian, Ottoman, Turkish and Indian architectural styles.</p>
<figure>
  <img src="/tutorial/htmlpages/images/tajmahal.jpg" alt="Taj Mahal"/>
</figure>
Test it Now

Output:

The Taj Mahal is widely recognized as "the jewel of Muslim art in India and one of the universally admired masterpieces of the world's heritage". It is regarded by many as the finest example of Mughal architecture, a style that combines elements from Islamic, Persian, Ottoman, Turkish and Indian architectural styles.

Taj Mahal

Note: The content you put within <figure>.......</figure> tag is related to the main flow, but its position is independent of the main flow and does not affect the flow the document when removed.


Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
<figure>YesYesYesYesYes

Note: HTML figure tag also supports the global and event attribute in HTML.


Next TopicHTML font tag




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf