TIP: Read before Part 1.
Harder: Better, Faster, Stronger
Accessibility is one of the oldest topic in web debates, as much-discussed so it was disregarded. But the new environment is natively thought to meet the needs of people with disabilities, that use assistive technology.
WAI-ARIA (Web Accessibility Initiative - Accessible Rich Internet Applications) sets a first frame of rules and methods to give a meaning to your mark-up. The role attribute, states and properties cover a first need in accessibility golden path.
"The role attribute provides information on what the object is. The States and Properties module (ARIA-State) adds meaning about relationships and current states"Accessibility is not only WAI-ARIA, there are serveral rules to respect, often these bounds are clearly exposed in national laws:
http://alistapart.com/article/waiaria
- an overview: http://www.clarissapeterson.com/2012/11/html5-accessibility,
- best practices: http://opentextbc.ca/accessibilitytoolkit/,
- tools: http://www.508checker.com/,
- cheatsheet: http://mcdlr.com/wai-aria-cheatsheet/,
- USA gov guidelines: https://www.section508.gov/,
- Italian gov accessibility guidelines, solutions and tools: http://www.pubbliaccesso.it/.
It's true, a web page mark-up can be responsive without be accessible but everything accessible is, at least partially, responsive. For instance, the domain of responsive can be related to different screen sizes of a similar device but also to different kinds of devices.
Responsiveness is one of the newest items in Internet, the rise of mobile web pushed up the need to have a liquid mark-up adaptable as much as possible to ... anything.
HTML5 design encourages you to write code Accessible and Responsive, but there is a third reccomendation: you can also do this using the new semantic elements.
Semantics: The branch of linguistics and logic concerned with meaning. The two main areas are logical semantics, concerned with matters such as sense and reference and presupposition and implication, and lexical semantics, concerned with the analysis of word meanings and relations between them. (http://www.oxforddictionaries.com/definition/english/semantics).
Any respectable article about semantics quotes Magritte. |
Semantics is the bugbear of mark-up debates in the last 15 years:
Just mentioning the word generates flames, ruins families and undermines zen gardens:
- http://www.andybudd.com/archives/2004/05/semantic_coding/
- http://www.smashingmagazine.com/2011/11/11/our-pointless-pursuit-of-semantic-value/
- http://html5doctor.com/lets-talk-about-semantics/
But choosing the Semantics way makes the code faster and reduces redundancy:
Semantic tags, attributes and rules are modeled from the most common types of webpages/services:
- <header>, <nav>, <main>, <footer> for the page organization;
- <article>, <section>, <summary>, <details>, <time> are the essential containers for serveral kinds of contents, for instance: blog, e-commerce, e-press;
- <audio> and <video>, the new tags for common multimedial contents.
- help to link consistently form fields with db data types,
- bring essential infos for validation process,
- route the interpreter to the right data output,
- INPUT TYPES give a meaning to a relevant part of a web site like a form, an interface between users and you.
ReplyDeletenice article for beginners.thank you.
html5 tutorial