0
0
HTMLmarkup~10 mins

Why semantic HTML matters - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a semantic header section.

HTML
<[1]>Welcome to my website</[1]>
Drag options to blanks, or click blank then click option'
Adiv
Bheader
Cspan
Dsection
Attempts:
3 left
💡 Hint
Common Mistakes
Using
instead of a semantic tag.
Using which is inline and not for sections.
2fill in blank
medium

Complete the code to mark up the main content area semantically.

HTML
<[1]>This is the main content of the page.</[1]>
Drag options to blanks, or click blank then click option'
Aaside
Bfooter
Cmain
Darticle
Attempts:
3 left
💡 Hint
Common Mistakes
Using
which is for page footers.
Using
3fill in blank
hard

Fix the error in the code by choosing the correct semantic tag for a navigation menu.

HTML
<[1]>
  <ul>
    <li><a href="#home">Home</a></li>
    <li><a href="#about">About</a></li>
  </ul>
</[1]>
Drag options to blanks, or click blank then click option'
Anav
Bmenu
Csection
Ddiv
Attempts:
3 left
💡 Hint
Common Mistakes
Using
which is non-semantic.
Using
which is more general.
4fill in blank
hard

Fill both blanks to create a semantic article with a footer.

HTML
<[1]>
  <h2>My Article</h2>
  <p>This is an article about semantic HTML.</p>
  <[2]>
    <p>Written by Jane Doe</p>
  </[2]>
</[1]>
Drag options to blanks, or click blank then click option'
Aarticle
Bheader
Cfooter
Dsection
Attempts:
3 left
💡 Hint
Common Mistakes
Using
instead of
for independent content.
Using
instead of
for the bottom info.
5fill in blank
hard

Fill all three blanks to create a semantic page layout with header, main, and footer.

HTML
<[1]>
  <h1>Site Title</h1>
</[1]>
<[2]>
  <p>Welcome to the homepage.</p>
</[2]>
<[3]>
  <p>Contact info here.</p>
</[3]>
Drag options to blanks, or click blank then click option'
Aheader
Bmain
Cfooter
Dsection
Attempts:
3 left
💡 Hint
Common Mistakes
Using
or
instead of semantic tags.
Mixing up footer and header tags.