Reputation: 1974
I am working on HTML5 and i came across various HTML5 semantic tags like <article> <section> <aside> <nav> <header> <footer> <audio> <video> <source> <track> <embed> <canvas>
etc.
I would like to what exactly is the advantage of using these semantic tags. is it for fast loading or any other feature?
Please share your thoughts.
Upvotes: 2
Views: 811
Reputation: 19524
Upvotes: 4
Reputation: 49974
It's to accurately describe the content of the tag.
For example this means when Google (or any search bot) crawls a page, it can more accurately dissect it and assign relevance scores to the various bits of content.
Wikipedia has a nice simple definition:
Semantic HTML is the use of HTML markup to reinforce the semantics, or meaning, of the information in webpages rather than merely to define its presentation or look. Semantic HTML is processed by regular web browsers as well as by many other user agents. CSS is used to suggest its presentation to human users.
So whether a browser takes special action upon tags like audio
and video
is purely up to the developer of the browser rendering engine, but they are there to be used.
Upvotes: 5