10 Rare HTML Tags You Really Should Know

Web developers these days are often expected to know and work in multiple languages. As a result, it’s tricky to learn everything a language has to offer and easy to find yourself not utilizing the full potential of some more specialized but very useful tags.

Unfortunately we haven’t been tapping into the full potential of these more obscure HTML tags as of late. But it’s never too late to get back into the game and start writing code that taps into the power of some under-used tags.

Here are ten of some of the most underused and misunderstood tags in HTML. While they might be less familiar, they’re still quite useful in certain situations.

1. <cite>

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.

2. <optgroup>

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:


Live demo:

This allows the select list to visually separate the movie listings.

3. <acronym>

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  Twitter has recently struggled with downtimes.

Live demo:

SEO is full of trickery and magic.

4. <address>

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.

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.

John likes LOVES his new iPod.

Live demo:

John likes LOVES his new iPod.

6. <label>

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.


7. <fieldset>

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.

Are You Smarter Than a 5th Grader? Yes No

Live demo:

Are You Smarter Than a 5th Grader?

Yes

No

8. <abbr>

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.

Sgt. Pepper's Lonely Hearts Club is my favorite album.

Live demo:

Sgt. Pepper’s Lonely Hearts Club is my favorite album.

9. rel

Rel can be an insanely useful attribute, as any HTML element can have a rel applied to it. It’s helpful for passing extra variables that aren’t otherwise specified. This is helpful when using Javascript with your HTML. If you have a link that you want to edit inline, you might add:

This link is editable

The Javascript might be looking for a link with the rel attribute “clickable”, and it knows to apply some Ajax and allow it to be edited inline. This is one of many techniques you can use with the rel attribute, as the possibilities are endless.

10. <wbr>

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 or ­­. 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.

How do you say Supercalifragilisticexpialidocious?

Note: Want to add some source code? Type <pre><code> before it and </code></pre> after it. Find out more
  • http://baffleinc.com/ Harley Alexander

    Random.

  • Rob

    Cracking article with some very useful tips.

    Cheers

  • http://www.riaguy.com Koistya `Navin

    Yeah, I have never seen that someone used tag. Let’s remove it from usefull tags list :)

  • Keith

    The ‘address’ tag is not for marking up general postal addresses. It is for supplying contact details of the author of the document. If you wish to semantically mark-up a postal address, use Microformats.

  • Zwoep
    • Zwoep
  • http://www.subigya.com suBi

    and i thought i knew HTML

  • Poonam

    Nice Post….New to many of them :)

  • http://www.freshclickmedia.com Shane

    Reminds me of the SitePoint article I read the other day.

  • choise

    are these tags all valid in xtml-strict ?

  • http://www.duellweb.com duellsy

    had completely forgotten about the wbr tag, could have saved some headaches not lot ago!

  • Pingback: Work by Remote » Blog Archive » On HTML Tags

  • http://www.darrenmcpherson.co.uk/ Darren McPherson

    Heard of them all, used maybe half.

  • http://twitter.com/marvinbarretto Marvin

    I don’t make a habit of slagging off blog articles but this is poor and a great example of one or two good points diluted by filler to ‘make up the numbers’…

    It seems as if the author run out of ideas and has had to resort to including an attribute (rel is not a tag) and ‘wbr’ as a tag i really should know? Come on… Readers might like to know that wbr isn’t and never was part of the HTML spec.

    It is widely recognised that there is no need for both the ‘abbr’ and ‘acronym’ tag and as such, there is no acronym tag in the working spec for HTML5. Yet the author appears to be encouraging the use of both?

    I was glad to see the ‘address’ tag until I saw the explanation to why one would want to use it. The explanation is misinformed, that was not the intended use.

    Anyone who wants to gain a better, TRUE understanding of HTML elements should go to the W3C spec and read the guidelines.

    • Baa

      Just wanted to write the same.
      This article is a mess. I thought someone keeps an eye on what is being posted here.
      Sorry to say that but the author simply does not understand the meaning of some HTML tags. And you can just have a look at the comments to see how many begginers are going to use those tags the wrong way.

      Someone should correct all mistakes in this post.

    • http://www.bostonwebstudio.com/ Marc

      Regarding abbr and acronym, I would disagree. Semantically, they’re not the same, so they, in my opinion, each deserve to exist and can be used appropriately.

    • http://www.freshclickmedia.com Shane

      I was aluding to this when I posted my ‘similar to the sitepoint’ comment. A post’s worth isn’t proportional to the amount of time spent writing it, but I can’t imagine that this took long to knock up. Still – it’s got people talking – is that not the purpose of a blog?

  • http://www.roytanck.com Roy Tanck

    How about the ruby tag? I didn’t know about that one until after I named my daughter Ruby :)

    (Although it doesn’t really fall into the ‘you should know’ category)

  • http://www.roytanck.com Roy Tanck

    Oh, and isn’t optgroup supposed to go around a set of options?

  • http://www.workalone.co.uk Tony Crockford

    Grr, get the semantics right please!

    A ‘tag’ is the word in angled brackets that comes at the beginning and end of an element. An ‘attribute’ is something added to the tag which further describes the element.

    This post has mixed up the use of tag and attribute and doesn’t explain elements at all.

    For beginners this will perpetuate the confusion and simply annoy anyone who understands the difference and how to properly use the elements described within.

  • Rob

    Nice List.
    I think you dropped some text in number 10 – something between ‘try’ and ‘or’?

    “If you were wanting to achieve the same effect but without using the tag, you could also try ​ or should be noted that none of these tags have full support across all browsers.”

  • Pingback: 10 редких html тегов | Alex Volkov

  • http://richclarkdesign.com Rich Clark

    Decent write up and Ii picked a few things up, however I ought to point out that ‘address’ should only be used to ‘specify such information as address, signature and authorship for the current document’ (from w3c html3 spec) it is not an address element for listing a number of offices in an organisation for example. For addresses you are much better off making use of the vcard microformat.

    Also I would advise against using acronym at all as it is dropped from the proposed html5 and xhtml2 specs as it was deemed that abbr is more semantic.

    A good use for the rel attribute is for microformats as well including xfn which helps you to specify yourself at different urls (e.g. homepage, twitter, flickr etc)

  • http://sarsini.it Martin Sarsini

    Do you really consider fieldset and label rare HTML tags? If you work often with forms you can’t not know them, they are a MUST

  • http://www.apostropheart.com/ Mike

    Interesting if not entirely useful. Some I use, some I don’t and some I never will.

    Rather than use surely these days it’s better to make a vcard.

  • http://www.apostropheart.com/ Mike

    Boy! For a site about web site building you sure make it difficult to post code in the comments!

  • http://www.apostropheart.com/ Mike

    OK. I was talking about the “address” tag.

  • Pingback: 10 etiquetas HTML que deberías conocer

  • http://www.meteoracle.co.uk Westley Knight

    Due to the amount of forms I create, fieldset and label are second nature to me, and rel is used in a number of lightbox implementations which is where I first came to grips with it.

    I can see real uses for cite, optgroup, address and abbr, but I think the remaining tags, although useful in their own right, would only be applicable in a tiny number of cases, and wouldn’t class them as ‘must know’.

    But saying that, I bet I’ll use them in the future now I know them! Great article to bring some little know tags to light.

  • http://harshamv.com Harsha M V

    wow.

    I have to try using few of them !!!

  • http://www.nishug.com nishu

    yawn list ! what about interesting tags like .. dt, dl, dd, dfn, kbd, legend, sub .. ?

    • Neil

      and of course

      • Neil

        sup

  • http://www.scottradcliff.com Scott Radcliff

    Nice post. If some designers took note, they separate their content and presentation even further.

    I agree with Martin Sarsini. Fieldset and label aren’t really rare HTML tags.

  • Pingback: <wbr> Ajuste de línea condicional | El HTML desconocido | ..: Cristian Eslava | Diseño Gráfico / Web | Maquetación | Formación :..

  • http://lynnepope.net Elpie

    I’m amazed to see some of these tags here as many are certainly not rare (and not all are tags anyway).

    There’s also a few mistakes.

    wbr is not part of either the HTML or XHTML specification, even though some browsers recognise it. It was designed to provide browsers with an optional place to break text within a nobr tag, so should always be used within a nobr tag (if you want to use invalid code).

    A better example of acronym would be acronym title=”cascading style sheets” CSS. Your example is completely wrong.

    The example for cite is misleading. A better example would be, for eg.
    blockquote: paragraph from, say Wikipedia
    cite: attribution to the source

    (You will have to imagine the code since I cannot format here in the comments).

    I wouldn’t recommend that anyone use this tutorial as a guide but if any of the tags or the rel attribute are new to you, look them up on the W3C site. There’s not much point in using new code if you don’t use it correctly!

  • http://viorelmocanu.ro/blog/ Viorel

    Hey, where are the labels from point 7?

  • http://www.ambience.sk dusoft

    rel is not a tag, yes, you want to have a nice title, but you shouldn’t mislead beginners!

  • http://www.pushingbuttons.net Timothy

    What? Wrong. Rel is used all over the place. It is used often to assign events in JavaScript to anchors with a given rel value. Ins and Del are used often as well. A lot of WYSIWYG editors use this when you do inserted strings or deleted strings (like in TinyMCE). And a decent amount of people use cite rather than blockquote.

    And label? Lots of people use labels within forms.

  • http://www.mogillmedia.com Mike

    Great article! I’ve been using “” instead of “” in my sites and will definitely revise them to reflect this more semantic mark-up. Thanks for the tip!

    • http://www.mogillmedia.com Mike

      Great article! I’ve been using ‘abbr’ instead of ‘acronym’ in my sites and will definitely revise them to reflect this more semantic mark-up. Thanks for the tip!

      • http://richclarkdesign.com Rich Clark

        Mike, see the above messages you SHOULDN’T be using acronym, abbr is just fine and acronym is due to be dropped in html5 and xhtml2.

  • http://www.olliekav.com Ollie Kavanagh

    Yeah the address tag was never intended for marking up an address. I would always normally use it for a contact email address or similiar, basically contact details. Then use VCard Microformats to mark up an address.

  • http://www.xposegrafix.com Joe

    Cool HTML tags ,but know most of them.

  • http://nikhilmisal.wordpress.com Nikhil – Powerusers

    i have used some of them but the collection is superb……

  • http://www.rankhighermakemoney.com Eric

    I like the article. Funny, not too long ago I could have used that wbr tag! Next time, I’ll know. – Eric

  • http://utkantha.blogspot.com girish [richi]

    most of those wer already used and written by me in my articles.

  • http://www.pure-performance.com Mark

    Great info very useful. I like the INS / DEL, and I should have known about the OPTGROUP, will be using in the near future.

  • Freddie

    This is a great article. Have added it to IHeartTopTens : http://www.ihearttoptens.com/view.php?uid=35

  • http://www.newstandardcreative.com Wade Jackman

    Great post, I forgot about some of those, and never heard of wbr.

  • http://www.flickr.com/people/72537940@N00/ Darren Paul Azzopardi

    Hi Glen,

    When did the tag become a way of marking up geographical locations?

    Saying that I dont think it has too contain actual addresses…

    The last time I read about this tag was when it was used to mark up contact information related to the document itself… :S

    Oh boy, back to the reading board…

  • http://www.sanchothefat.com/ Robert O’Rourke

    You should make a note that ACRONYM is deprecated in XHTML in favour of ABBR as ABBR covers both acronyms and abbreviations semantically speaking. ADDRESS is not for location either as others have stated, HTML5 aims to deal with poorly named tags like this however.

  • Mike

    “rel” is not a “html tag” so you really only have 9 on the list.

  • Nick Tulett

    Most underused tag for sites containing code samples?

    samp

  • roni

    Honestly, any decent HTML coder/producer not knowing and not using fieldset, label & legend when coding a form cannot pretend to be a pro-coder.

    Those tags must be used when producing a form : basic accessibility.

    As for rel, it is not a tag it is an attribute.
    I agree it can be used with js a expained here but it is absolutely not the original pupose of this attribute.

    Any of those tags, optgroup, cite…. are not obscure at all. They just have one very spcefic purpose and they cannot be used or tricked into becoming anything else. Any pro-coder know those tags !

    May be wbr is obscur indeed… So obscur that W3C does not know this tag!

  • http://www.wedomarkup.com Jesel Morga

    Cool post thanks for the article. a big help. ^_^

  • http://www.jsbwebdesign.com Joe

    I hadn’t seen nor heard of WBR until a day or so ago when I was trying to get code for a constant contact signup form. They had it sprinkled within.

  • Daryl

    Since I started using CSS I avoid these tags completely. If I want an address to look a certain way, I just make an address class in my stylesheet. Same for Blockquote, Cite, etc. My own class names are usually easier to remember than old html 1 tags.

    THe problem is that if I leave it up to the browser, and each browser interprets these tags differently, than I have to take complete control anyways. Might as well make them classes.

    (though I must admit though that “acronym” would be useful)

    • Damjan

      You should read more about semantic code and SEO ;)

    • http://www.DanMesa.com Dan

      CSS Reset will solve that, for the most part.