Questions on verification

For technical support for all editions of CSS HTML Validator. Includes bug reports.
Post Reply
pvcraven
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">

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

</head>
<body>

	<p>Lorum Ipsum</p>	

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


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

Re: Questions on verification

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

Hello,

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.
Image
Albert Wiersch

Post Reply