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://blog.callumchapman.com/ callum

    great post! very useful, thanks!

  • Pingback: 10 Sällsynta HTML taggar | falknet.se

  • http://janckos.net Janckos

    Muy interesante, gracias.

  • http://www.dsaportfolio.com.br Diego SA

    Wow, there are some tags I didn’t know. I gonna try it later.

  • http://www.graphicrating.com Andy Gongea

    First, I will tell you this pretty straight: You’re the worst writer from Nettuts from my point of view. Considering the comments, others may share my thought.

    All other tutorials offer valuable information while yours show 10 “things” all the time. No offense but if you not technical enough and can’t create a important and valuable information – that’s OK. All you have to do is research and find out. But try and verify your content before sending it to the community.

    PS: Thank you guys for this valuable comments. This is a real community.

    Cheers!

    • http://www.dsaportfolio.com.br Diego SA

      Hey Dr. Evil!
      I’ve never seen such a punch in the middle of someone’s face in a post comment.

      I have fear of you! Be cool!

      • http://www.graphicrating.com Andy Gongea

        That was funny.

        But take a look at those newbies that are saying what great tips they found in this article. That is what you should be afraid of. Many new designers wannabes will take this info for granted – this thought gives me the creeps.

  • mbarvian

    Wow, I haven’t seen many of these. Thanks for posting!

    I might start using acronym now!

  • Pingback: links for 2009-03-24 on studiowhiz.com

  • http://css-tricks.com Chris Coyier

    I don’t see how a person can call themselves a “web developer” when they have very little understanding of the most basic thing about web development: HTML. Why didn’t you use a labels for yes and no in the fieldset example? Have you worked with forms before, because if you have, how can you say label and fieldset are rare? If the answer is yes to my question and you have worked with forms before, that’s just sad.

  • http://www.netwaver.com Ramil

    label, fieldset and rel are commonly used most of the time.

  • Pingback: Daily Links | AndySowards.com :: Professional Web Design, Development, Programming, Hacks, Downloads, Math and being a Web 2.0 Hipster?

  • fesh

    Great articles and very useful! I been doing html for more than 5 years and honestly I don’t know what is the use of those html tags! Thanks!

  • http://ara.ifky.com.au Geeves

    is not a valid html 4.01 or xhtml 1 tag. The wbr-element is not part of w3c’s HTML spec at all. That’s the reason the tag is little known or used. My advice would be to stick to standards.

  • http://flxhr.flensed.com Kyle Simpson

    I just want to say I use the wbr tag in my site, and I am happy with it. I have a script that inserts it every 20th character in long unbroken strings of characters, to allow them to break. These are usually long URL’s that are being printed on the page, and so nice wrapping is very helpful.

    Also, my script instead uses ­ if on Safari (since safari doesn’t support wbr), and ­ does almost the same thing, but with a printable hyphen at the break point. The combination of the two covers all major browsers and provides nice wrapping.

    Standards be darned, there are uses for things like this. And it seems to be well supported at the moment.

  • http://flxhr.flensed.com Kyle Simpson

    btw, I should have known that the character wouldn’t print well. The character I was referring to is &shy.

  • http://www.irocon.com Alfero Chingono

    I’ve only used three of these in all my web development years, many thanks.

  • Pingback: links for 2009-03-24 « Serious Simplicity

  • John Davies

    Great article, many of these tags were long forgotten!

    RT
    http://www.privacy-tools.us.tc

  • http://www.shebangsoftware.com David Killen

    Some of these tags are incredibly useful for making use of semantic markup. It always makes sense to use the tag which best describes the content. Tags like and do just that.

  • http://swapnilsarwe.phpnet.us/ Swapnil Sarwe

    Whoaaa!!!!

    Never heard some of them, and even if heard never really thought about the specific use for which it must have been meant…

    Anyways, will love to use them, but only those who validates my HTML clean.

  • Pingback: CSS Factory Wiki » Blog Archive » あなたがマジで知ってるべき10個のレアなHTMLタグ

  • http://fail.com Ben

    This article is disgraceful to both newbies who are using it to learn from and REAL professionals who know better.

    You know what else is a rare tag? . Double points if you nest it in a . Triple points if you use comic sans and apply it using the tag

    The sad part is my sarcastic example is every bit as valid as your example of the REL attribute. If you are going to use it for “AJAX” you’re better off just make up a attribute such as anotherNonValidJunkAttribute=”clickable” because they can be targeted the same in JavaScript but in my example Google won’t read the REL and think that the link is related to “clickable”

    • Mike Piasecki

      Niiiiiiiice! Let me buy you a beer!

  • Frustrated

    Would Mr. Stansberry please stop posting about things most people either already know about or don’t care about.

  • Pingback: 10个你应该了解的极少用的HTML标签

  • http://www.abhijitdutta.com Abhijit

    In these Web 2 days, label and fieldset are pretty commonly used for designing forms; and rel is of course used everywhere. So at least these three are not “rare”. optgroup is also pretty common, though it is starting to become less common now a days mostly because select boxes are being replaced by custom lists.

  • http://www.audrizzle.com Amanda Kruel

    “If you were wanting to achieve the same effect but without using the tag, you could also try ​ or ­­.”

    I love ” ” and ” “!
    No, just kidding. You might want to fix that, though.

    Anyway, great stuff! Very interesting to see some “new” and more importantly, simple HTML.

  • http://rcthegreatblog.com Rahul Chowdhury

    Man, these tags are awesome. Its really helpful for Webmasters, I will use them in my Websites. Specially the Acronym Tag, its really good and worth using.

  • Abdullah

    WOW, I already know 2 of them only :)
    thanks

  • http://www.cwebconsultants.com Mani

    I think, the comments section is more informative than the actual article. And it actually is.

    Thanks Paul and Jacob for sharing your thought else many of the readers might not have able to the tags correctly.

    But what about those, who do not care to read comments!!

    • http://www.cwebconsultants.com Mani

      Sorry, please correct this line:

      Thanks Paul and Jacob for sharing your thought else many of the readers might not have able to the tags correctly.

      Thanks Paul and Jacob for sharing your thought else many of the readers might not have been able to know the tags correctly.

  • Vsync

    Great great article.
    As an advanced web developer I rarely come across an article that
    teaches me something new about XHTML :p

    but here it is! i didn’t know about this !
    great thing this tag!

    although CSS3 word-break should replace is very soon..

  • http://svg.startpagina.nl stelt
  • http://nextframe.net tom-erik

    wbr is great for long words when listing narrow li’s . You can count letters and add it when the letter count exceeds the li’s width.

  • Pingback: 10 Rare HTML Tags You Really Should Know - Nettuts+ « living in sunshine

  • Pingback: links for 2009-03-25 | This Inspires Me

  • http://1.homeninja.com covax

    Would Mr. Stansberry please stop posting about things most people either already know about or don’t care about.,.

  • http://icebear.net Peter

    Great article, I’ll keep it as a reference. Perhaps I’ll use some of the tags in future.

  • http://bridgehosting.net web design newport

    If you’re going to abuse semantics instead of using acronym for definitions why not use abbr it’s shorter and there’s at least some rationale behind something like

    [abbr title="twitter: a microblogging website"]twitter[/]

    Whilst there’s no way “twitter” is an acronym. I just use a span with a class=”defn” attribute and a title then style it to match the acronym and abbr tags. Works the same way then and is more correct.

  • http://www.picli.com photo sharing

    Wow I’d never heard of :) I’ll be giving it a go soon

  • Pingback: links for 2009-03-24 | RationaLogic

  • Pingback: Semi-Rare HTML Tags You Should Know | Recent Technology News Blog, Washington DC Metro

  • Mike Piasecki

    And coming up, 10 things I’ve eaten in the last ten days, for the tenth time.

    Seems the info porn side of web development is getting a little lean in the area of useful information for once.

    Now get back to work and do something useful with your time.

  • Mike Piasecki

    I dunno, it just seems like if it’s outside the realm of a CMS, a Bullet Proof Web Design book or AJAX it’s treated as some lost art. Kinda sad really, seeing self proclaimed developers thinking simple HTML or XHTML tags are forgotten or rarely used.

    It’s a decent article with some strange examples to support the points made, but over all it went well with the time I had to kill.

  • Pingback: Ari On the Internet » I woke up thinking it was Tuesday..

  • http://www.atvvarna.com ATV

    Really useful post :)

  • http://aboutnerd.com Tim

    No tag? This is one of the rarest and most useful tags I’ve come across.

  • Pingback: Murmp - 10 Rare HTML Tags You Really Should Know

  • http://www.amxpert.com Chris

    As someone that is an HTML buff and doesn’t want to make the jump to any automated systems like wordpress, it’s nice to see these commands.

  • http://www.refurbishedmacbooks.biz/ Ryan

    I think that I have been living under a rock all this while, the tutorial is really awesome. I like the way the rel tag has been explained.

  • http://adambrunner.blogspot.com Adam

    At the section, you mention instead of . BTW, great post! Thanks for it!

  • Haha

    I hazard a guess that would stand for “wrapping break”, meaning that the break would occur if the line of text had to be wrapped inside a container or table cell or something. That would be useful today, I can’t stand seeing the amount of widowed and orphaned text on web pages in general.

    Anyway, like 1000+ people have said before me, there’s a good reason why alot of these tags are not in use. They’re replaced with better solutions, or CSS. God help you if you use or , or or for that matter.

  • Pirate Pete

    And god help the moderators if they let these obscure tags get through on their forum comment section!