0
0
HTMLmarkup~20 mins

Proper indentation in HTML - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Indentation Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediate
2:00remaining
Identify the correct indentation in HTML
Which option shows the properly indented HTML code for a simple webpage structure?
A
<!DOCTYPE html>
<html>
<head>
    <title>Page Title</title>
</head>
<body>
    <h1>Welcome</h1>
    <p>This is a paragraph.</p>
</body>
</html>
B
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Welcome</h1>
<p>This is a paragraph.</p>
</body>
</html>
C
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
    <h1>Welcome</h1>
<p>This is a paragraph.</p>
</body>
</html>
D
<!DOCTYPE html>
<html>
<head>
    <title>Page Title</title>
</head>
<body>
<h1>Welcome</h1>
    <p>This is a paragraph.</p>
</body>
</html>
Attempts:
2 left
💡 Hint
Look for consistent indentation inside the and sections.