CLICK HERE

Earning More

Clickz

Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Thursday, January 6, 2011

Here is Some Example of Tag Define & Usage


1.<!-->
Example
An HTML comment:
<!--This is a comment. Comments are not displayed in the browser-->

<p>This is a paragraph.</p

Usage :-

The comment tag is used to insert a comment in the source code

2.<!DOCTYPE>
Example
An HTML document with a doctype of XHTML 1.0 Transitional:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.getybacchas.blogspot.com/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Title of the document</title>
</head>

<body>
The content of the document......
</body>

</html>

Usage:-

The doctype declaration should be the very first thing in an HTML document, before the <html> tag.

3.<a>
Example
Usage:-
The <a> tag defines an anchor. An anchor can be used in two ways:
  1. To create a link to another document, by using the href attribute
  2. To create a bookmark inside a document, by using the name attribute
The a element is usually referred to as a link or a hyperlink.

4.<abbr>
Example
An abbreviation is marked up as follows:
The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.

Usage:-

The <abbr> tag describes an abbreviated phrase.


5.<acronym>
Example
An acronym is marked up as follows:
Can I get this <acronym title="as soon as possible">ASAP</acronym>?

Usage:-

The <acronym> tag defines an acronym.


6.<address>
Example
Contact information for richajain378.blogspot.com:
<address>
Written by getybacchas.blogspot.com<br />
<a href="mailto:kuldeepbachchas@gmail.com">Email us</a><br />
Address: Sec-130, Noida<br />
Phone: +919958xxxxxxxx
</address>

Usage:-

The <address> tag defines the contact information for the author or owner of a document. This way, the reader is able to contact the document's owner.
The address element is usually added to the header or footer of a webpage.


7.<applet>
Example
An embedded Java applet:
<applet code="Bubbles.class" width="350" height="350">
Java applet that draws animated bubbles.
</applet>

Usage:- 

The <applet> tag defines an embedded applet.

8.<area>
Example
An image-map, with clickable areas:
<img src ="planets.gif" width="145" height="126" alt="Planets" usemap ="#planetmap" />

<map name="planetmap">
  <area shape="rect" coords="0,0,82,126" href="sun.htm" alt="Sun" />
  <area shape="circle" coords="90,58,3" href="mercur.htm" alt="Mercury" />
  <area shape="circle" coords="124,58,8" href="venus.htm" alt="Venus" />
</map>

Usage:-

The <area> tag defines an area inside an image-map (an image-map is an image with clickable areas). The area element is always nested inside a <map> tag.
 
9.<b>
Example
Format text in a document:
<tt>Teletype text</tt>
<i>Italic text</i>
<b>Bold text</b>
<big>Big text</big>
<small>Small text</small>

Usage:-

The <tt>, <i>, <b>, <big>, and <small> tags are all font-style tags. They are not deprecated, but it is possible to achieve richer effect with CSS.


10.<base>
Example
Specify a default URL and a default target for all links on a page:
<head>
<base href="http://www.getybacchas.blogspot.com/blogspot/" />
<base target="_blank" />
</head>

<body>
<img src="HTML Code.gif" />
<a href="http://www.richajain378.blgospot.com">Shine India</a>
</body>


Usage:-

The <base> tag specifies a default address or a default target for all links on a page.
The <base> tag goes inside the head element.


11.<basefont>
Example
Specify a default font-color and font-size for text on page:
<head>
<basefont color="red" size="5" />
</head>

<body>
<h1>This is a header</h1>
<p>This is a paragraph</p>
</body>

Usage:-

The <basefont> tag specifies a default font-color, font-size, or font-family for all the text in a document.