Difference between tag and element?
HTML Tags are the starting and ending parts of an HTML element. They begin with < symbol and end with > symbol. Whatever is written inside < and > are called tags.
Example: In this example is the starting tag and is the ending tag <b> </b>
The HTML element consists of both the opening and closing tags as well as what’s inside those tags. It normally consists of some structure that’s used to define the respective tags.
Example: In this example is the starting tag and is the ending tag but with content inside it.
<b>This is the content.</b>
Semantic Tags
Html5 semantic tags provide meaningful tags that clearly describe their purpose, improving readability ,accessibility ans SEO for both humans and browsers.
Attributes
The HTML element consists of both the opening and closing tags as well as what’s inside those tags.…