SOURCE:
https://www.reddit.com/r/computerscience/comments/8cer6c/difference_between_structural_and_semantic_markup/Structural Tags - a tag that structures the page layout, usually serving as a parent for semantic tags to be placed.
Example in HTML Code View:
<head>
<nav>
<head> would be the structural tag for a <nav> </nav>
Analogy: scaffolding of building
Semantic Tags - a tag indicating something about the content.
*some semantic tags can have structural properties. a <div> becomes structural when it has two or more children.
No comments:
Post a Comment