Semantic elements defines “elements with a meaning.”
With HTML5, There are few elements added to the HTML5 tag libraries and as element name defines the purpose/meaning of the tag/element, it is known as Semantic elements.
Examples of non-semantic elements:
<div> <span> <p> <br> <td> <tr>
Examples of semantic elements:
HTML5 offers new semantic elements to define different parts of a web page:
Why elements needs to be Semantic ?
Purpose behind using semantic elements so that search engines can search for the contents easier and precisely using the semantic elements instead of searching with element IDs which was happening in HTML4.
As per W3C, Semantic Web: “Allows data to be shared and reused across applications, enterprises, and communities.”