Write clean HTML
Use meaningful elements, proper indentation and clear structure.
Learn how websites are structured from the ground up using HTML. Build real pages while learning elements, attributes, links, images, forms, tables, semantic HTML and more.
Lesson 21 of 24
15 min learning time
Use meaningful elements, proper indentation and clear structure.
Well-structured HTML is easier for you and other developers to understand and maintain.
<main>
<section>
<h2>Our Services</h2>
<p>
We build modern software solutions.
</p>
<a href="services.html">
View Services
</a>
</section>
</main>
Practical Exercise
Review one of your previous pages and improve its structure and indentation.
Quick Check
Which is a good HTML practice?