Skip to main content

HTML Guide

Free site validation

Find out what web pages on your sites are affected by HTML issues.

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

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" />

Related W3C validator issues