Recall & Review
beginner
What is proper indentation in HTML?
Proper indentation means using spaces or tabs to organize HTML code so that nested elements are visually grouped. This makes the code easier to read and understand.
Click to reveal answer
beginner
Why should you use proper indentation in your HTML code?
Proper indentation helps you and others quickly see the structure of the webpage. It makes finding errors easier and improves teamwork when sharing code.
Click to reveal answer
beginner
How many spaces are commonly used for each indentation level in HTML?
Most developers use 2 or 4 spaces per indentation level. The key is to be consistent throughout your code.
Click to reveal answer
beginner is indented inside the
Show an example of properly indented HTML for a simple list.
- Item 1
- Item 2
- to show it belongs there.
Click to reveal answer
beginner
What problems can happen if HTML is not properly indented?
Without proper indentation, code becomes hard to read and debug. It can cause confusion about which tags belong inside others, leading to mistakes in the webpage layout.
Click to reveal answer
What does proper indentation in HTML help with?
✗ Incorrect
Proper indentation organizes code visually but does not affect webpage appearance or speed.
Which is a common number of spaces used for one indentation level in HTML?
✗ Incorrect
2 or 4 spaces per level is standard for readability and consistency.
How should nested HTML tags be indented?
✗ Incorrect
Nested tags should be indented inside their parent tags to show hierarchy.
What is a negative effect of not using proper indentation?
✗ Incorrect
Lack of indentation makes code confusing and error-prone, but does not break the webpage display.
Which tool can help you check and fix indentation in HTML?
✗ Incorrect
Many text editors can auto-format HTML to fix indentation automatically.
Explain why proper indentation is important in HTML and how it helps when writing code.
Think about how you read a book with clear paragraphs versus a wall of text.
You got /4 concepts.
Describe how you would indent nested HTML tags in a simple webpage.
Imagine putting smaller boxes inside bigger boxes, each inside the other.
You got /3 concepts.