What is a semantic element in HTML5? Also, explain the difference between semantic and non-semantic elements?
1 Like
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.