Code - Cheat Sheet

Tuesday, May 12, 2020

Structural and Semantic Markup - Differences

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

Panels

Panels are the items at the right side of the Photoshop window that can display layer information and text options SOURCE: https://www...