+ 2

What is an HTML5 semantic element?

22nd Apr 2018, 4:15 AM
Tanay Shirodkar
Tanay Shirodkar - avatar
2 Réponses
+ 5
A semantic element clearly describes its meaning to both the browser and the developer. Examples of non-semantic elements:  <div>and <span> - Tells nothing about its content. Examples of semantic elements:  <form>, <table>, and <article> - Clearly defines its content.
22nd Apr 2018, 4:21 AM
Mahmudul Hasan Fahim
Mahmudul Hasan Fahim - avatar
+ 2
<section>, <nav> are also semantic.
22nd Apr 2018, 4:31 AM
Adam
Adam - avatar