0

HTML semantic element

Does html tag or element "span", besides summary and article, can be classified as semantic element since it has a meaning to separate in ceritain distance, or strech, etc.

9th Jan 2024, 2:56 AM
Oliver Pasaribu
1 Respuesta
+ 2
I recommend to read the specification. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span "The <span> HTML element is a generic inline container for phrasing content, which does not inherently represent anything. It can be used to group elements for styling purposes" The definition of semantic: "relating to meaning in language or logic" So the clear answer is no, span is not a semantic element.
9th Jan 2024, 5:57 AM
Tibor Santa
Tibor Santa - avatar