< vs &lt;

For general web development questions that are not specifically related to CSS HTML Validator. This includes (but is not limited to) general HTML, CSS, Accessibility, JavaScript, and SEO questions.
User avatar
roedygr
Rank V - Professional
Posts: 367
Joined: Fri Feb 17, 2006 5:22 am
Location: Victoria BC Canada

< vs &lt;

Post by roedygr »

My copy of HTMLValidator fails to complain about a dangling < that should be encoded as < or removed.

I could not find anything in the config to turn on such a check. Is there one?
User avatar
Albert Wiersch
Site Admin
Posts: 3785
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Re: < vs &lt;

Post by Albert Wiersch »

No, there's not option for that. Usually that should generate a message like this because CSE HTML Validator is expecting a tag:
Found the character '<' while looking for '>' to end a tag. The character '>' must appear before another '<'. To use this character in the text portion of the document or in an attribute value, we recommend using the entity reference "<".

Can you post a sample piece of HTML that reproduces the problem?

Also, what version of CSE HTML Validator are you using?

Thanks.
Albert Wiersch, CSS HTML Validator Developer • Download CSS HTML Validator FREE Trial