All of us will be familiar with the <blockquote> tag, but did you know about <blockquote>’s little brother <cite>? <cite> allows you to define the text inside of the element as a reference. Typically the browser will render the text inside of the <cite> tag in italics, but this can be changed with a touch of CSS.
The <cite> 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.
The <optgroup> 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:
- <LABEL for=showtimes>Showtimes</LABEL>
- <SELECT id=showtimes name=showtimes> <OPTGROUP label=1PM></OPTGROUP> <OPTION value=titanic selected>Twister</OPTION> <OPTION value=nd>Napoleon Dynamite</OPTION> <OPTION value=wab>What About Bob?</OPTION> <OPTGROUP label=2PM></OPTGROUP> <OPTION value=bkrw>Be Kind Rewind</OPTION> <OPTION value=stf>Stranger Than Fiction</OPTION></SELECT>
Showtimes Twister Napoleon Dynamite What About Bob? Be Kind Rewind Stranger Than Fiction
This allows the select list to visually separate the movie listings.
The <acronym> tag is a way to define or further explain a group of words. When you hover over text that has the <acronym> tag used, a box appears below with the text from the title tag. For example:
- The microblogging site <ACRONYM title="Founded in 2006"> Twitter</ACRONYM> has recently struggled with downtimes.
SEO is full of trickery and magic.
The <address> tag is quite an obscure little tag, but that doesn’t mean it isn’t useful! As the name implies, <address> 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.
- <ADDRESS>Glen Stansberry
- 1234 Web Dev Lane
- Anywhere, USA
5. <ins> and <del>
If you’re wanting to display editing revisions with with markup, <ins> and <del> are just the ticket. Like the name implies, <ins> highlights what’s been added to the document with an underline, and <del> shows what’s been taken out with a strikethrough.
likes his new iPod.
Form elements seem the easiest to forget when marking up a document. Of the form elements, one of the most forgotten is the <label> tag. Not only is it a quick way to note the label’s text, the <label> tag can also pass a "for" attribute to specify which element is to be given the label. Not only are these <label> tags great for styling, they also allow you to make the caption clickable for the associated element.
Fieldset is a nifty little attribute that you can add to your forms to logically group form elements. Once applied the <fieldset> tag draws a box around the elements within the fieldset. Bonus points for adding a <label> tag within the fieldset to define the title of the group.
- <FORM><FIELDSET> <LEGEND>Are You Smarter Than a 5th Grader?</LEGEND>Yes <INPUT type=radio value=yes name=yes> No <INPUT type=radio value=no name=no> </FIELDSET>
Are You Smarter Than a 5th Grader?Yes No
The <abbr> tag is much akin to the <acronym> tag, except the <abbr> tag is only used to define abbreviated words. Just like <acronym>, you define a title within the tag. When a visitor hovers over the abbreviated text, the full definition appears below. The <abbr> tag is rarely used, but the benefits are many for screen readers, spellcheckers and search engines.
- <ABBR title=Sergeant>Sgt.</ABBR> Pepper’s Lonely Hearts Club is my favorite album.
Sgt. Pepper’s Lonely Hearts Club is my favorite album.
The <wbr> tag is an incredibly obscure tag. To be honest, I doubt many of you have come into contact with the tag, as it’s hardly ever used. (Truthfully, I hadn’t seen the tag before I started researching this article.) Essentially, the tag allows you to specify a place where you think a line break might be useful, but only if needed. This tag is unique as it relies on the discretion of the browser to insert the linebreak, if needed. It’s perfect for creating layouts that you want to avoid having horizontal scrollbars.
If you were wanting to achieve the same effect but without using the <wbr> tag, you could also try
. It should be noted that none of these tags have full support across all browsers. To see which browsers support the tags check out this article by Quirksmode.