HTML 5.1 breeze spec gets ‘main’ element

HTML 5.1
Debate still rages about a best approach to tackle a web page’s categorical calm in HTML 5.1

The HTML 5.1 breeze spec now includes a ‘main’ element.

According to a spec, a element, “represents a categorical calm territory of a physique of a request or application”. The pronounced territory “consists of calm that is directly associated to or expands on a executive subject of a request or executive functionality of an application”. In a stream definition, there contingency be usually one main element per document, and it contingency not be a child of header, footer, article, aside or nav.

The Paciello Group (TPG) technical executive Steve Faulkner is one of a categorical advocates of main, and has worked tough to get it into a breeze spec. He told .net it was a judicious further formed on common mark-up patterns and responding to authors frequently identifying an area of a page as a categorical content.

“Authors use a div with a detailed id value like main, regulating it as a styling hook. Some also use this as a semantic identifier regulating an ARIA [accessible abounding internet application] role=main, that provides marker and navigation advantages for assistive record users. Furthermore, authors use it as a aim for skip links, which yield keyboard users with a process to pierce directly to a categorical content, bypassing couple menus,” he said.

Faulkner pronounced a main element builds on these practices, “building in a semantic identifier so authors do not have to shaft it on”. He pronounced it encourages browser vendors to “provide a elementary built-in process for users to navigate to a categorical calm area, stealing a need for authors to supplement a skip link manually”.

HTML5 spec editor Ian Hickson remained unconvinced, citing a far-reaching accumulation in how authors mark-up categorical calm and what they even cruise categorical content. Because of this, he was endangered “users will find main won’t work reliably,” and it would be a “luck of a draw” any time they strike a move to categorical landmark key either it worked or not.

Hickson also argued that if HTML was used fully, we practically symbol adult what’s important, since it’s “everything we didn’t symbol adult as an aside, a header, a navigation block, etc., and so browsers could already skip to a subsequent bit of critical content, though any changes to a mark-up denunciation during all”.

According to Faulkner, this evidence “doesn’t reason water”. He added: “In an idealised world, it might be so, though looking during real-world mark-up patterns, a spontaneous marker of a categorical calm regulating a div and id is a most some-more accurate indicator of a primary calm area within a page than a Scooby Doo algorithm. The main element takes advantage of this to yield advantages to both users and developers.”

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Leave a Comment

Comments are moderated. Please no link dropping, no keywords or domains as names; do not spam, and do not advertise!

nine + 6 =