Problem Statement
Which of the following is considered a best practice for HTML formatting?
Explanation
Consistent indentation, lowercase tags, and proper line spacing improve code readability and collaboration. Good formatting helps maintainability and reduces the chance of structural errors in complex layouts.
Code Solution
SolutionRead Only
<!-- Well-formatted HTML example -->
<main>
<section>
<h2>Good Formatting</h2>
<p>This is an example of well-indented HTML.</p>
</section>
</main>Practice Sets
This question appears in the following practice sets:
