- From: David Dorward <david@dorward.me.uk>
- Date: Tue, 08 Oct 2019 16:34:34 +0100
- To: "Dennis R. Ling" <dennis@stemcell-savethechildren.com>, "W3C WWW Validator" <www-validator@w3.org>
- Message-ID: <9376646E-3B73-4E7C-9631-15DB8F2A9378@dorward.me.uk>
On 8 Oct 2019, at 16:19, Dennis R. Ling wrote: > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > > When I add this to the text-input area you suggested I get the > language warning and 2 errors > > 1. > > *Warning*: Consider adding a |lang| attribute to the |html| start > tag to declare the language of this document. <html lang="en"> … for example, if you are writing in English. In the original email you said: >> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> … but support for `lang` is better than for `xml:lang`. > 2. > > *Error*: Almost standards mode doctype. Expected |<!DOCTYPE html>|. The Doctype you are using is for XHTML 1.0 Transitional. * XHTML is rarely useful (most documents are treated as plain HTML). * The "Transitional" indicates that it is designed to support old presentational markup while we transition to CSS. Browsers have had excellent support for CSS for over a decade so there's no need for that any more. Use `<!DOCTYPE html>` as the message recommends. > *Error*: Element |head| > <https://html.spec.whatwg.org/multipage/#the-head-element> is > missing a required instance of child element |title|. As it says, you need a title. <head> <title>This will appear in browser tabs, is the default name for a bookmark, and has a few other uses</title>
Received on Tuesday, 8 October 2019 15:34:59 UTC