Skip to main content
HTML Validation

Attribute “<” not allowed on element “X” at this point.

About This HTML Issue

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.