0
0
HTMLmarkup~10 mins

Proper indentation 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 properly indent the <h1> tag inside the <header>.

HTML
<header>
[1]<h1>Welcome</h1>
</header>
Drag options to blanks, or click blank then click option'
A(2 spaces)
B(tab)
C(4 spaces)
D(no indent)
Attempts:
3 left
💡 Hint
Common Mistakes
Not indenting at all
Using tabs instead of spaces
2fill in blank
medium

Complete the code to properly indent the <li> elements inside the <ul>.

HTML
<ul>
  [1]<li>Home</li>
  <li>About</li>
</ul>
Drag options to blanks, or click blank then click option'
A(no indent)
B(2 spaces)
C(tab)
D(4 spaces)
Attempts:
3 left
💡 Hint
Common Mistakes
Using only two spaces
Not indenting the first <li> tag
3fill in blank
hard

Fix the error in indentation for the <p> tag inside the <section>.

HTML
<section>
[1]<p>This is a paragraph.</p>
</section>
Drag options to blanks, or click blank then click option'
A(2 spaces)
B(4 spaces)
C(no indent)
D(tab)
Attempts:
3 left
💡 Hint
Common Mistakes
No indentation
Using tabs instead of spaces
4fill in blank
hard

Fill both blanks to properly indent the <nav> and <a> tags inside the <header>.

HTML
<header>
[1]<nav>
[2]<a href="#">Link</a>
  </nav>
</header>
Drag options to blanks, or click blank then click option'
A(2 spaces)
B(4 spaces)
C(tab)
D(no indent)
Attempts:
3 left
💡 Hint
Common Mistakes
Indenting both tags the same amount
Using tabs instead of spaces
5fill in blank
hard

Fill all three blanks to properly indent the <article>, <h2>, and <p> tags.

HTML
<main>
[1]<article>
[2]<h2>Title</h2>
[3]<p>Content here.</p>
  </article>
</main>
Drag options to blanks, or click blank then click option'
A(2 spaces)
B(4 spaces)
C(6 spaces)
D(tab)
Attempts:
3 left
💡 Hint
Common Mistakes
Indenting all tags the same amount
Using tabs instead of spaces