Welcome Guest! Web Capture Tool demo Log In | Sign Up!| Help|
RSS Feed RSS><
0 ThumbsUp
0 Comments
Title: Did you really think you know all about html code? - 10 cool HTML tags you may have never seen.
Source: http://net.tutsplus.com/. . ./
 Shared by: Anonymous
In eFolders: Computer/Technology/Science, Software, Software Development


If "Did you really think you know all about html code? - 10 cool HTML tags you may have never seen." is not shown property. Visit the source link above.
10 Rare HTML Tags You Really Should Know
 

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:

  1. <</SPAN>label for="showtimes">Showtimes</</SPAN>label>  
  2. <</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:

  1. The microblogging site  <</SPAN>acronym title="Founded in 2006" > Twitter</</SPAN>acronym> 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.

  1. <</SPAN>address>Glen Stansberry  
  2. 1234 Web Dev Lane  
  3. Anywhere, USA  
  4. </</SPAN>address>  

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.

  1. John <</SPAN>del>likes </</SPAN>del>  <</SPAN>ins>LOVES </</SPAN>ins> 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

  1. <</SPAN>label for="username">Username</</SPAN>label>  
  2. <</SPAN>input id="username"  type="text">  

7.

Fieldset is a nifty little attribute that you can add to your forms to logically group form elements. Once applied the

tag draws a box around the elements within the fieldset. Bonus points for adding a
  1. <</SPAN>form><</SPAN> fieldset>  
  2. <</SPAN>legend>Are You Smarter Than a 5th Grader? </</SPAN>legend>  
  3. Yes <</SPAN>input name="yes" value="yes" type="radio">  
  4.   
  5. No <</SPAN>input name="no" value="no" type="radio">  
  6. </</SPAN>fieldset>  
  7. </</SPAN>form>  

Live demo:

Are You Smarter Than a 5th Grader? Yes No

8.

The tag is much akin to the tag, except the tag is only used to define abbreviated words. Just like , you define a title within the tag. When a visitor hovers over the abbreviated text, the full definition appears below. The tag is rarely used, but the benefits are many for screen readers, spellcheckers and search engines.

  1. <</SPAN>abbr title="Sergeant">Sgt.</</SPAN>abbr> 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:

  1. <</SPAN>a rel="clickable"  href="page.html">This link is editable </</SPAN>a>  

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.

The 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 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.

  1. <</SPAN>span>How do you say Supercalifragilistic <</SPAN>wbr>expialidocious? </</SPAN>span>  
Capture pictures, videos, ...anything like above with our Live Capture Tool for sharing and archiving. Watch the DEMO
Twitter This
FaceBook Link
StumbleUpon
Reddit
MORE »

ETAGLIVE: YOUR TALKBACKS
Comments for: Did you really think you know all about html code? - 10 cool HTML tags you may have never seen.

To post comments, please Click Here to sign in
Contact Us | About us | Help | Privacy | Term of Service.  2007 eTagLive.com (TM), All rights reserved