HTML and CSS Reference
In-Depth Information
document, page, application, or site and that is intended to be
independently distributable or reusable, e.g., in syndication.”
A blog post, a tutorial, a news story, comic strip, or a video with
its transcript all fi t perfectly into this defi nition. Note that, as with
<nav> , the heading goes inside the element, so
<h1>My article</h1>
<article>
<p>Blah blah</p>
</article>
is incorrect; it should be
<article>
<h1>My article</h1>
<p>Blah blah</p>
</article>
There are many more interesting facets to <article> which
(you've guessed it) we'll look at in the next chapter.
Summary
In this chapter, we've taken our first look at HTML5, and its
DOCTYPE. We've seen its forgiving syntax rules such as
optional uppercase/lowercase, quoting and attribute mini-
misation, omitting implied elements like head/body, omitting
standard stuff like type=”text/javascript” and ”text/css” on
the <script> , and <style> tags. We've structured the main land-
marks of a web page using <header> , <footer> , <nav> , <aside> ,
and <article> , providing user agents with more semantics than
the meaningless generic <div> element that was our only option
in HTML 4 and styled the new elements with the magic of CSS.
Not bad for one chapter, eh?
 
 
Search WWH ::




Custom Search