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

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