Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to add a semantic header section.
HTML
<[1]> <h1>Welcome to my website</h1> </[2]>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
š” Hint
Common Mistakes
Using or tags which are deprecated.
Using
without semantic meaning.
ā Incorrect
The header tag is the correct semantic element for page headers. Tags like
2fill in blank
mediumComplete the code to emphasize text semantically.
HTML
<p>This is an <[1]>important</[2]> message.</p>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
š” Hint
Common Mistakes
Using which is only for styling.
Using which is deprecated.
ā Incorrect
The tag is used to give strong importance to text semantically. The tag only styles text bold without semantic meaning. Tags like are deprecated.
3fill in blank
hardFix the error in the code by replacing the deprecated tag with an appropriate alternative.
HTML
<[1] align="center">This text is centered.</[2]>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
š” Hint
Common Mistakes
Keeping the tag which is deprecated.
Using semantic tags that don't fit the content purpose.
ā Incorrect
The
with CSS for centering instead. Here, replacing with
is the first step to fix the error.
4fill in blank
hardFill both blanks to replace deprecated tags with semantic HTML5 tags.
HTML
<[1]> <[2]>This is the main navigation menu.</[2]> </[1]>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
š” Hint
Common Mistakes
Using
Using
- alone without semantic navigation.
ā Incorrect
The outer
5fill in blank
hardFill all three blanks to replace deprecated tags with semantic alternatives and proper structure.
HTML
<[1]> <[2]>Contact us at <a href="mailto:info@example.com">info@example.com</a></[2]> <[3]>Ā© 2024 Company Name</[3]> </[1]>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
š” Hint
Common Mistakes
Using
instead of
Using
instead of
for contact info.Using or tags.
ā Incorrect
The