WebAIM - Web Accessibility In Mind

E-mail List Archives

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

for

From: Duff Johnson
Date: Apr 21, 2015 11:03AM


> 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.

I'm not sure how missing a <title> affects the accessibility of the file per se (it seems more like a usability issue rather than a Level A accessibility concern), but I certainly accept that it's a violation of 2.4.2 as written - thanks.

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

What about <doctype>? It's missing as well…

Essentially what I'm getting at is: what's the minimum required for (notionally) HTML content in order to meet WCAG 2.0?

Thanks,

Duff.