WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Can HTML tagged content conform to WCAG 2.0 without <body>, etc?

for

From: Andrew Kirkpatrick
Date: Apr 21, 2015 10:33AM


It isn't best practice for HTML development but I'd say that while the file meets most success criteria it would fail 2.4.2 (Page titled) as the HTML element needed to provide a title is absent.

HTML5 allows the body element to be omitted in some circumstances, and this file would be one such example.

AWK

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of Duff Johnson
Sent: Tuesday, April 21, 2015 12:21 PM
To: WebAIM Discussion List
Subject: [WebAIM] Can HTML tagged content conform to WCAG 2.0 without <body>, etc?

Question for the WAI / HTML gurus…

Imagine a .html file including only the following content:

<p>Some text</p>

(I've attached such a file in the hope that the server may allow it to the list)

To be clear.. this file does *not* include <doctype, <body>, etc. If it doesn't comply with WCAG; why not?

Thanks,

Duff.