HTML and CSS Reference
In-Depth Information
Unless your audience has significant numbers of users of these
phones, we recommend you use sectioning content and head-
ings instead, with CSS for pretty dividers and forget about <hr> .
That way you have less markup, and besides, it's hard to style
<hr> consistently across browsers.
<ol>
Our old friend the unordered list hasn't been redefined, but it
does have two new attributes.
In HTML 4, the start attribute on <ol> was deprecated, as it
was deemed presentational. Luckily, HTML5 reverts this wrong
decision. If you want an ordered list to start at line five rather
than line one, use:
<ol start=5>
Something nice that isn't yet implemented in any browser is the
reversed attribute. Consider the following example:
<h3>Top five dreamy mega-hunks</h3>
<ol reversed>
<li>Brad Pitt</li>
<li>George Clooney</li>
<li>Orlando Bloom</li>
<li>Remy Sharp</li>
<li>Bruce Lawson</li>
</ol>
This creates a list that counts down from five (Mr. Pitt) to one
(me). Sorry, Brad, George, and Orlando—but what do you guys
know about HTML5?
<s>
In HTML 4.01, we had the <strike> and <s> elements to present
some text with a line through it. HTML5 retains <s> to represent
content that is no longer accurate or no longer relevant and that
therefore has been “struck” from the document. You'd use it to
show a pre-special offer price:
<p>Photograph of Remy Sharp in mankini. <s>&pound;100</s>
¬ Now: 12 pence.</p>
 
Search WWH ::




Custom Search