In this HTML tutorial, we will discuss all the HTML semantic tags. In this article, I will explain some of them through a list.
List of Semantic Tags
Tag Name | <u> |
Uses | The <header> tag is used to define the header section on a webpage. The <header> tag contains content such as the website name or logo, navigation links, search bar, etc. |
Syntax |
|
Example |
|
Tag Name | <nav> |
Uses | The <nav> tag is used to create navigation links. It is considered a good practice to use it along with the header tag. |
Syntax |
|
Example |
|
Tag Name | <main> |
Uses | The <main> tag is used to display the main content of the web page. This tag is used inside the body tag. |
Syntax |
|
Example |
|
Tag Name | <article> |
Uses | Used to indicate a self-contained composition on a web page, such as a blog post or news article. |
Syntax |
|
Example |
|
Tag Name | <section> |
Uses | The <section> tag is used to group related content on a webpage such as testimonials, contact forms, etc. |
Syntax |
|
Example |
|
Tag Name | <footer> |
Uses | <footer> tag is a tag that contains some information related to the website, copyright and some important links. This tag is used at the end of the webpage. |
Syntax |
|
Example |
|
Tag Name | <aside> |
Uses | The <aside> tag adds some content that is unrelated to the content of the webpage. A simple example of this is a sidebar. |
Syntax |
|
Example |
|
Tag Name | <figure> |
Uses | It is used to indicate self-contained content, such as a picture, diagram, or illustration, that is usually referred to in the main text. |
Syntax |
|
Example |
|
Tag Name | <figcaption> |
Uses | The <figcaption> tag defines a caption for the <figure> element. |
Syntax |
|
Example |
|
Tag Name | <details> |
Uses | Used to create a disclosure widget, allowing users to show or hide additional information. |
Syntax |
|
Example |
|
Tag Name | <summary> |
Uses | Used to create a disclosure widget, allowing users to show or hide additional information. |
Syntax |
|
Example |
|
Tag Name | <mark> |
Uses | Represents highlighted text that has a specific reference or importance in the document. |
Syntax |
|
Example |
|
Tag Name | <time> |
Uses | Represents a specific period in time, such as dates, times, or events. |
Syntax |
|
Example |
|
Tag Name | <address> |
Uses | The <address> tag is used to show the owner information of the article. |
Syntax |
|
Example |
|
Tag Name | <blockquote > |
Uses | Used for quoting a large section of content from another source, usually with attribution. |
Syntax |
|
Example |
|
Tag Name | <cite> |
Uses | Used to represent the title of a work, such as a book, article, or movie. |
Syntax |
|
Example |
|
Tag Name | <code> |
Uses | Represents a fragment of computer code. |
Syntax |
|
Example |
|
Tag Name | <pre> |
Uses | Represents preformatted text, where the text is displayed in a fixed-width font, and whitespace and line breaks are preserved. |
Syntax |
|
Example |
|
Tag Name | <strong> |
Uses | Indicates that the enclosed text has strong importance or emphasis. |
Syntax |
|
Example |
|
Tag Name | <em> |
Uses | Marks text that has emphasis, usually rendering it in italic. |
Syntax |
|
Example |
|
Tags
html