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
  • Pingback: 10 Rare HTML Tags You Really Should Know - A Geek’s Life

  • http://www.logicworks.com.au Rajbir Jawanda

    Tag 2. is something nice.

    I implemented something equivalent using some funny logic of having space in front of normal list items.

    Impressive compilation.

  • Pingback: TrishaLyn

  • Pingback: 彼岸blog » Blog Archive » 必须知道的10个不常用HTML标签

  • Pingback: Tagz | "10 Rare HTML Tags You Really Should Know" | Comments

  • Pingback: Top 2 Design Related Top 10 Lists |

  • http://4dl.info Dir Submitter

    I was prepared to reply after the first half of tags and brag that I got to use them all. But I have to admit, the last one: wbr is the one I didn’t use.

    btw I think wbr is no longer supported in ie8. Microsoft just wants to be special.

  • Pingback: Como evitar alguns erros no seu site | Design Digital, para seu site | Dkcell Design

  • Pingback: Etiquetas raras de HTML « ddsign

  • http://ddsign.wordpress.com ddsign

    I find this post very interesting ,so I am going to make a translation to Spanish in my blog. Thanks for writing it!

  • http://www.thaireason.com oasis1984

    Great Articles…. Thank.

  • http://www.gigglecomputer.com Phaoloo

    Actually, I never use one of them before. Common tags are enough for me, but it is great to know more :D

  • Pingback: 10 Rare Html Tags you should really know « Mike Vallotton’s Blog

  • Pingback: Interesting Things of the Week # 62 « Lore Librarian

  • Pingback: Adopting a “Does It Really Matter?” Philosophy

  • Pingback: Adopting a “Does It Really Matter?” Philosophy - Programming Blog

  • vasudev

    Good article. But please confirm is that correct acronym tag example ?

  • Pingback: No Huddle Offense » Blog Archive » 10 html tags you realy should know about

  • Pingback: Collection of 10 top 10 lists about web development | vijayjoshi.org

  • Pingback: 9 Link Bait & Content Hook Strategies | TechThinker

  • Pingback: Adopting a “Does It Really Matter?” Philosophy | Desinine

  • http://www.bristol-street-art.co.uk Justin Staple

    Just spotted a syntax error in the description of the tag.

    “…but the benefits are many for screen readers…”

    I think ‘many’ should be ‘mainly’

  • http://onetec.pk Lahore

    Thanks for sharing this info. This was very helpful and educational

  • Pingback: Web 制作に役立つリソースとツール | Nutspress

  • Neil

    This article is ‘low quality’, you are using a lot of these incorrectly in the examples. Do some research for heavens sake, this stuff should be elementary for a professional, there are beginners reading this whom you are misleading with your error packed article.

  • http://www.twitter.com/darrelaustin Darrel

    Some really inaccurate/incomplete info in this article.

    re: rel attribute

    http://www.sitepoint.com/blogs/2009/08/28/rel-not-a-custom-attribute/

  • Pingback: Bookmarks for December 18th through December 21st |

  • Pingback: Mr. Tweet: Your Personal Networking Assistant!

  • Joe

    Actually, they are not tags but elements.

  • http://enrique-ramirez.com Enrique Ramírez

    Wow. Please don’t take is the wrong way, I’m just trying to give proper feedback to this article, but this has to be one of the worst written articles I’ve read in quite some time.

    Some innaccurate info, really poor information as well as examples on some (if not all) of the tags, some honest mistakes (that look really obvious to me for some reason) here and there (like “Bonus points for adding a “label” tag within…”, it should be a “legend” tag instead), missing some of the pros and cons of each tags… overall, a really poor article.

    The intention was good, and I really hope I’m not irritating anyone by saying this. Just think you should try not to rush and post something for the sake of updating.

    P.S. After pressing “tab” when updating the URL field in the comments section, the browser sends me back to the top instead of the “ADD COMMENT” button. Something to keep in mind. :)

  • http://www.lyonssolutions.co.uk Web Design from Lyons Solutions

    Don’t think these tags are rarely used. I have often seen them being used in different sites.

  • http://www.alexsandro.com.br Alexsandro

    Thank’s for nice article. I Unknown tag.

  • http://www.theitechblog.com Namit Gupta

    I found the list interesting, as I was not knowing about many of these useful tags, thanks for sharing.

  • Pingback: links for 2010-01-05 « iProgress

  • Pingback: Read This Link » 10 Rare HTML Tags You Really Should Know - Nettuts+

  • Pingback: Professional web designers and web 2.0 experts » Blog Archive » The 15 Best Articles For Designers in 2009

  • http://www.graphicdesignclassesonline.com/ graphic design classes

    Damn I didnt even know most of theses were around… I better brush up on my coding >.< Great post!

  • http://thekruser.com thekruser

    Fantastic article. Especially the and tags. I had often wondered why bloggers used a strikethrough/underline combination, and now I know. Thank you for posting this!

    • http://thekruser.com thekruser

      Ha ha ha! Oops! I guess I didn’t take into consideration that the tags would produce results in my comment. Don’t you just love making yourself look like an idiot on someone else’s site?!?

      This is how it should have read:

      Fantastic article. Especially the and tags. I had often wondered why bloggers used a strikethrough/underline combination, and now I know. Thank you for posting this!

      • http://thekruser.com thekruser

        Well, hell…I give up! INS and DEL tags!

        Apparently, the CODE tag is not recognized in comments. And, apparently, I suck at life!

  • http://www.sokobanja.com/ SokoBanja

    Very nice article, thank’s!!!

  • http://www.kronikmedia.co.uk/ KM Web Design

    Tags like rel as mentioned in your list are quite important. Let us not forget the no index tag.

  • Pingback: More Technology Links from CosmoBC.com InTheBlogs - CosmoBC.com TechBlog

  • http://www.lifesub.de Lifesub Webdesign

    Cool, by the way: I like HTML :P

  • http://www.robnixondesigns.com Rob

    The rel attribute should not be used to give elements custom attributes. The only valid use of the rel attribute is when applied to a and link tags. It’s purpose is to describe the relationship between the current document and the document specified in the href attribute, using the appropriate options from the available list: alternate, stylesheet, start, next, prev, contents, index, glossary, copyright, chapter, section, subsection, appendix, help, and bookmark.

  • TML

    Excellent post, cheers for these!

  • http://www.rahmetli.info/ Emin Bugra Saral

    tag seems very useful. Thanks for the article.

  • http://www.inorbitdesign.com Jon Thomas

    For point # 7, did you mean to say “Bonus points for adding a tag within the fieldset to define the title of the group.” (Which can be downright annoying to style cross-browser)

  • http://mattrossidesigns.com matt

    i was also going to bring up the optgroup use…not to be a hater, but a very useless article…

  • Washington

    I’m using opera browser and it doesn’t load all the pictures in this site, I’ve been in PSDTuts and the same problem happend. I’ve tried viewing this page in firefox, and even IE but again the same problem…

  • HTML Coder

    We build validated HTML and we don’t read the spec yet. hahaha …

  • Dom

    the alternative suggestions in 10 are rendered, I’m curious what they were
    and i think at 7 you mean not
    nice read though!