Structural Elements
HTML5 introduced semantic elements that define the structure of a web page. These replace generic divs and improve accessibility.
Header Element
Loading HTML Playground...
The <header> element:
- Contains introductory content
- Can be used for page header or section headers
- Typically contains headings, logo, navigation
Nav Element
Loading HTML Playground...
The <nav> element:
- Major navigation blocks only
- Not every group of links
- Use
aria-labelfor multiple navs
Main Element
Loading HTML Playground...
The <main> element:
- Contains the dominant content
- Only ONE per page
- Skip links should target main
- Excludes repeated content (nav, footer)
Aside Element
Loading HTML Playground...
The <aside> element:
- Content tangentially related
- Sidebars, pull quotes, ads
- Could be removed without affecting main content
Footer Element
Loading HTML Playground...
The <footer> element:
- Closing content for its nearest ancestor
- Can be page footer or section footer
- Contains copyright, links, author info
Section Element
Loading HTML Playground...
The <section> element:
- Thematic grouping of content
- Should have a heading
- Generic section of a document
Complete Page Structure
Loading HTML Playground...
Exercise: Build Page Structure
Create a complete semantic page structure:
Loading HTML Exercise...
Structural elements create a clear, accessible page hierarchy!
التالي · الدرس 26 من 32
Content Elements
قراءة 2 دقيقة
أنهيت 25 من 32 درسًا

اسأل Byte عن هذا الدرس
محادثة خاصة حول هذا الدرس. قرأ Byte الدرس كاملًا، ويجيب خلال ثوانٍ، ويُظهر القسم الذي تأتي منه كل إجابة. يمكنك السؤال بأي لغة.
الأسئلة والأجوبة
أسئلة عامة حول هذا الدرس. يجيب AI Tutor فورًا بلغتك، ويراجع فريق FreeAcademy الإجابات، ويمكن لكل المتعلمين قراءتها.

