0
0
HTMLmarkup~10 mins

Nested elements in HTML - Interactive Code Practice

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

Complete 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'
A<ul>
B<ol>
C<div>
D<p>
Attempts:
3 left
💡 Hint
Common Mistakes
Using
or

instead of a list container.

Using
    when an unordered list is needed.
2fill in blank
medium

Complete 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'
A<p>
B<div>
C<span>
D<section>
Attempts:
3 left
💡 Hint
Common Mistakes
Using
or instead of

for paragraphs.

Forgetting to close the paragraph tag.
3fill in blank
hard

Fix 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'
A<section>
B<ol>
C<div>
D<ul>
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the list container tag.
Using
or
instead of a list container.
4fill in blank
hard

Fill 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'
A<h1>
B<nav>
C</h1>
D</nav>
Attempts:
3 left
💡 Hint
Common Mistakes
Using
Forgetting to close the heading tag.
5fill in blank
hard

Fill 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'
A<h2>
B<p>
C</h2>
D</p>
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up heading and paragraph tags.
Forgetting to close tags properly.