Computer science · University
HTML structure and semantics
A structural unit of HTML represented by a tag and its content.
Prerequisites
Basic computer literacy.
Study notes
Element
A structural unit of HTML represented by a tag and its content.
Semantic markup
Elements chosen for meaning and document structure, not visual appearance alone.
Attribute
Extra information placed on an HTML element.
Document outline
The logical hierarchy created by headings, landmarks and sections.
Worked examples
Which term best matches this description: A structural unit of HTML represented by a tag and its content.
Element is the matching concept in this lesson.
Element
Which term best matches this description: Elements chosen for meaning and document structure, not visual appearance alone.
Semantic markup is the matching concept in this lesson.
Semantic markup
Check your understanding
Which concept would you apply first in a situation where extra information placed on an HTML element.
- Attribute
- Element
- Document outline
- Semantic markup
Name the concept described as: The logical hierarchy created by headings, landmarks and sections.
Which statement about Element is most accurate?
- Extra information placed on an HTML element.
- Elements chosen for meaning and document structure, not visual appearance alone.
- A structural unit of HTML represented by a tag and its content.
- The logical hierarchy created by headings, landmarks and sections.
Explain one important difference between Element and Semantic markup.
Answers and marking guidance
Answers and marking notes
- Attribute
The scenario directly calls for Attribute.
- Document outline
The intended concept is Document outline.
- A structural unit of HTML represented by a tag and its content.
The definition in the lesson notes gives the required condition.
- Element: A structural unit of HTML represented by a tag and its content. Semantic markup: Elements chosen for meaning and document structure, not visual appearance alone.
Credit a clear distinction using both definitions and an appropriate example if supplied.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.
AI-assisted preview; independent educational review required. Level labels describe prerequisites, not accreditation or official curriculum alignment.