Questions on verification

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
Rank 0 - Newcomer
Rank 0 - Newcomer
Posts: 1
Joined: Sat Sep 16, 2017 10:19 am

Questions on verification

Post by pvcraven » Sat Sep 16, 2017 10:32 am

Hi, when validating the document below, I think it would generate errors for:
* Lack of a close body tag
* Lack of a close html tag
* Lack of an escaped ampersand

CSE Validator buries the lack of a close body/html message in the grouped messages. I don't see an error for the ampersand. Shouldn't there be one?

Code: Select all

<!DOCTYPE html>
<html lang="en">

  <meta charset="utf-8">
  <title>Bar & Grill</title>


	<p>Lorum Ipsum</p>	

  <p>Posted by: Student's Bar & Grill</p>
  <p>Contact information: 515 555 1411</p>

User avatar
Albert Wiersch
Site Admin
Site Admin
Posts: 3392
Joined: Sat Dec 11, 2004 9:23 am
Location: Near Dallas, TX

Re: Questions on verification

Post by Albert Wiersch » Sat Sep 16, 2017 12:04 pm


The "body" and "html" end tags are optional. If you'd like to generate errors or warnings when they are missing then you can right-click on the relevant message in the Grouped tab and change the message to an error or warning. Another option would be to check the Require optional end tags option in the Validator->Tag Options page of the Validator Engine Options.

The & character is not a problem in that case because it is followed by a space which makes it non-ambiguous.

I hope this helps. Please let me know if you have any more questions.
Albert Wiersch

Post Reply