Pro HTML5 Accessibility by Joshue O Connor

Pro HTML5 Accessibility by Joshue O Connor

Author:Joshue O Connor [Connor, Joshue O]
Language: eng
Format: epub, pdf
Tags: Computers, Application Development, Internet, Web, Web Programming
ISBN: 9781430241942
Publisher: Apress
Published: 2012-03-26T04:00:00+00:00


Self-Contained Article

The new <article> element is a more self-contained, independent type creature. It is used to outline a self-contained composition that can be spread around the net if required, and it won’t need to pack a spare pair of pajamas because it has everything it needs already.

Note The <article> element can also represent a widget, and not just a blog entry or comment, but a composition and so on.

So if a blog post was added to our Guitar Gallery example using the <article> element, we might find it looking something like Listing 5-12.

Listing 5-12. Using <article> to Add a Blog Post

<article id=”MyGuitarBlog”>

<header>

<h1>Your first high end Guitar</h1>

<p> Taking the plunge, and why you should do it </p>

</header>

<p>Buying your first really high end axe is up there with moving house, doing a driving test or getting married in terms of being really important but the good news is it’s nothing like as stressful as any of those are!</p>

<p>[…] </p>

<footer>

<p>Some comments from interested humans </p>

</footer>

</article>

If some comments were actually added, they might look like Listing 5-13.

Listing 5-13. Comments in Blog Post Wrapped in <article> Elements

<article id="MyGuitarBlog">

<header>

<h1>Your first high end Guitar</h1>

<p> Taking the plunge, and why you should do it </p>

</header>

<p>Buying your first really high end axe is up there with moving house, doing a driving test

or getting married in terms of being really important but the good news is it’s nothing like

as stressful as any of those are!</p>

<p>[…] </p>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.