1.
All of us will be
familiar with the
tag, but did you know about
's little brother ? allows you to define
the text inside of the element as a reference. Typically the
browser will render the text inside of the tag in italics,
but this can be changed with a touch of CSS.
The
tag is really useful for citing bibliographic and other site
references. Here's an example of how to use the cite tag in a
paragraph:
David Allen's
breakthrough organization book Getting Things
Done has taken the web by storm.
2.
The
tag is a great way to add a little definition between groups of
options inside a select box. If you needed to group movie listings
by time, for example, then it would look like this:
- <</SPAN>label for="showtimes">Showtimes</</SPAN>label>
- <</SPAN>select id="showtimes"
name="showtimes"> <</SPAN>optgroup label="1PM"></</SPAN>optgroup
> <</SPAN>option value="titanic">Twister</</SPAN>option> <</SPAN>option value="nd">Napoleon Dynamite
</</SPAN>option>
<</SPAN>option value="wab">What About Bob?
</</SPAN>option>
<</SPAN>optgroup label="2PM"></</SPAN>optgroup
> <</SPAN>option value="bkrw">Be Kind Rewind
</</SPAN>option>
<</SPAN>option value="stf">Stranger Than Fiction
</</SPAN>option>
</</SPAN>select>
Live
demo:
This allows the select list to visually separate the movie
listings.
3.
The tag is a way to define or further explain a group
of words. When you hover over text that has the tag used,
a box appears below with the text from the title tag. For
example:
-
The microblogging site
<</SPAN>acronym title="Founded in 2006"
> Twitter</</SPAN>acronym> has recently struggled with downtimes.
The microblogging site Twitter has recently struggled with downtimes.
Live demo:
SEO
is full of trickery and magic.
4.
The
tag is quite an obscure little tag, but that doesn't mean
it isn't useful! As the name implies,
allows you to semantically markup addresses in HTML. The
nifty little tag will also italicize all of the data within the
brackets, though the style can easily be changed through simple
CSS.
- <</SPAN>address>Glen Stansberry
- 1234 Web Dev Lane
- Anywhere, USA
- </</SPAN>address>
<address>Glen Stansberry
1234 Web Dev Lane
Anywhere, USA
5.
and
If you're wanting
to display editing revisions with with markup, and are
just the ticket. Like the name implies, highlights what's been
added to the document with an underline, and shows what's been
taken out with a strikethrough.
- John <</SPAN>del>likes
</</SPAN>del>
<</SPAN>ins>LOVES
</</SPAN>ins> his new iPod.
John likes LOVES his new iPod.
Live demo:
John
likes LOVES his new iPod.
6.
Form elements seem
the easiest to forget when marking up a document. Of the form
elements, one of the most forgotten is the tag can also
pass a "for" attribute to specify which element is to be given the
label. Not only are these
- <</SPAN>label for="username">Username</</SPAN>label>
- <</SPAN>input id="username"
type="text">
7.
|