W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > April to June 2015

Re: role="presentation" [SEC=UNOFFICIAL]

From: Steve Faulkner <faulkner.steve@gmail.com>
Date: Wed, 13 May 2015 16:33:50 +0100
Message-ID: <CA+ri+Vmm5S45+1Z-qD8OZ6D8-N6XdKZxBJMJC=cUtiE8d8Oo9w@mail.gmail.com>
To: Jesper Tverskov <jesper@tverskov.dk>
Cc: WAI Interest Group <w3c-wai-ig@w3.org>
On 13 May 2015 at 16:16, Jesper Tverskov <jesper@tverskov.dk> wrote:

> How to make the radio button align vertically in the middle when
> extreme zoom, low resolution or a narrow view-port in the browser
> window tilts the answer options of the multiple choice test, creating
> linebreaks, word wrapping.
>

because what you are describing is the use of tables for visual
presentation/formatting purposes, which should not be done, but if it is
use role=presentation:

Tables should not be used as layout aids. Historically, many Web authors
> have tables in HTML as a way to control their page layout making it
> difficult to extract tabular data from such documents. In particular, users
> of accessibility tools, like screen readers, are likely to find it very
> difficult to navigate pages with tables used for layout. If a table is to
> be used for layout it must be marked with the attribute role="presentation"
> for a user agent to properly represent the table to an assistive technology
> and to properly convey the intent of the author to tools that wish to
> extract tabular data from the document.
>
http://www.w3.org/TR/html5/tabular-data.html#the-table-element

--

Regards

SteveF
HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>
Received on Wednesday, 13 May 2015 15:34:58 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 25 May 2017 01:54:15 UTC