Skip to main content
HTML Validation

Saw “<” when expecting an attribute name. Probable cause: Missing “>” immediately before.

About This HTML Issue

A < character has been found when an attribute was expected instead. Check the syntax of the affected tag, it’s probably malformed and a < character inside has been interpreted as an attribute.

For example, this code might cause this issue:

<!-- Malformed img tag -->

<img src="photo.jpg" alt="smiling cat" < />

<!-- Fixed img tag -->

<img src="photo.jpg" alt="smiling cat" />

Last reviewed: October 27, 2022

Was this guide helpful?

Find issues like this automatically

Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.

Ready to validate your sites?
Start your free trial today.