HTML5 has new semantic tags replacing the old conventional tags. The new semantic tags describe the content in a better way than the traditional ones with numerous advantages. Here is the pictorial representation of the major HTML5 structural tags.
HTML5 semantic elements are supported on all contemporary browsers like Chrome, Firefox, Safari etc. Let's have a look on the usage of important semantic tags.
<article>(Block) - Content such as blog post or Article.
<aside>(Block) - Content slightly related to the main content on page i.e the secondary content.
<figure>(Block) - Grouping static content like image/Video etc
<figcaption>(Text) - Use with <figure> tag to provide caption.
<footer>(Block) - Provide author information, Copyright data etc.
<header>(Block) - Include Navigation and introductory headings, logos.
<hgroup>(Block) - For grouping <H1> to <H6>
<nav>(Block) - Site level Navigation.
<mark>(Text) - To highlight or reference text.
<section>(Block) - Grouping of content with common headings (similar to chapters).
<time>(Text) - For Date/Time representation.
What are the main advantages of new semantic tags?
HTML5 semantic elements are supported on all contemporary browsers like Chrome, Firefox, Safari etc. Let's have a look on the usage of important semantic tags.
<article>(Block) - Content such as blog post or Article.
<aside>(Block) - Content slightly related to the main content on page i.e the secondary content.
<figure>(Block) - Grouping static content like image/Video etc
<figcaption>(Text) - Use with <figure> tag to provide caption.
<footer>(Block) - Provide author information, Copyright data etc.
<header>(Block) - Include Navigation and introductory headings, logos.
<hgroup>(Block) - For grouping <H1> to <H6>
<nav>(Block) - Site level Navigation.
<mark>(Text) - To highlight or reference text.
<section>(Block) - Grouping of content with common headings (similar to chapters).
<time>(Text) - For Date/Time representation.
What are the main advantages of new semantic tags?
- Maintenance of HTML page is easy as the new markups have extra information about the structure within their name itself.
- Better Search Engine Optimization.
No comments:
Post a Comment