Tsallaka zuwa abun ciki
Justice Tech School

Common HTML Mistakes

Frequent errors: unclosed tags, duplicate ids, missing alt text, block elements inside inline ones, skipped heading levels and missing doctype. Validate your page to catch them.

Example
<!-- Wrong -->
<p>Unclosed paragraph
<img src="a.jpg">
<!-- Right -->
<p>Closed paragraph</p>
<img src="a.jpg" alt="A description">

Exercise

Describe an image.

<img src="a.jpg" ="Cat">

Quiz Test

Which is an HTML mistake?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.