Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a list inside a section.
HTML
<section> [1]<li>Item 1</li><li>Item 2</li></ul> </section>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
or
instead of a list container.
Using
- when an unordered list is needed.
✗ Incorrect
The
- tag creates an unordered list, which is the correct container for list items inside the section.
2fill in blank
mediumComplete the code to nest a paragraph inside an article.
HTML
<article>
[1]This is a paragraph inside the article.</p>
</article> Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
or instead of
for paragraphs.
Forgetting to close the paragraph tag.
✗ Incorrect
The
tag is used to define a paragraph, which is the correct element to nest inside an article for text content.
3fill in blank
hardFix the error in nesting a list inside a nav element.
HTML
<nav>
[1]<li>Home</li><li>About</li></ul>
</nav> Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the list container tag.
Using
or instead of a list container.
✗ Incorrect
The list items
- . The code was missing the opening
- tag.
4fill in blank
hardFill both blanks to nest a heading inside the header.
HTML
<header> [1]Main Navigation[2] </header>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
Forgetting to close the heading tag.
✗ Incorrect
The heading text should be inside
and
tags to mark it as a main heading.5fill in blank
hardFill all three blanks to create a section with an article containing a heading and a paragraph.
HTML
<section>
<article>
[1]Welcome[2]
[3]This is the first paragraph inside the article.</p>
</article>
</section> Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up heading and paragraph tags.
Forgetting to close tags properly.
✗ Incorrect
The heading inside the article uses
and
tags. The paragraph starts withand ends with
.