You are on page 1of 6

HTML TAGS

1. Tag: <HTML>
Name: HyperText Markup Language
Description: The HTML html tag is the container that contains all other HTML elements. All
other HTML elements are nested between the opening <html> and </html> tags.
Example : <html>
---------
---------
</html>

2. Tag: <BODY>
Name: BODY
Desciption: This tag provide body of document. This area will contain everything
that will be visible through a web browser, such as text and graphics.
All of the information will be HTML coded.
Example: <BODY>The content of your document</BODY>
Output: The content of your document

3. Tag: <TITLE>
Name: TITLE
Desciption: he TITLE of your page. This will be visible in the title bar
of the viewers’ browser.</title> - Closes the HTML <title> tag.
Example: <TITLE>Title of your webpage</TITLE>

4. Tag: <!-->
Name: Comment
Desciption: This is comment tag & it can be use in HTML as the part of
Document.
Example: <!--This can be viewed in the HTML part of a document-->

5. Tag: <A ->


Name: anchor
Desciption: The HTML <A> tag is used for creating a hyperlink to either another
document, or somewhere within the current document.
Example: <A HREF="http://www.yourdomain.com/">Visit Our Site</A>
Output: Visit Our Site

6. Tag: <Applet>
Name: Applet
Desciption: The HTML applet tag is used for embedding a Java applet within an
HTML document.
Example: <applet code="wooferDog.class" width="500" height="650">
Java applet of a woofer dog.</applet>
7.Tag: <B>
Name: Bold
Desciption: The HTML b tag is used for specifying bold text.
Example: <B>Example</B>
Output: EXAMPLE

8.Tag: <I>
Name: Italic
Desciption: This I tag is used for specifying Italic text.
Example: <I> Example </I>
Output: EXAMPLE

9.Tag: <BR>
Name: Break
Desciption: The HTML br tag is used for specifying a line break.
Example: This is before the line break<br> The contents of your page.
Output: The contents of your web page
The contents of your web page.

10.Tag: <CENTER>
Name: Center
Desciption: The HTML center tag is used to center-align HTML elements.
Example: <center>This text is centered</center>.
Output: This text is centered

11.Tag: <COL>
Name: Col tag
Desciption: The HTML col tag is used for specifying column properties
for each column within a colgroup.
Example: <col width="50"></col>
<col width="100"></col>

12.Tag: <DEL>
Name: Delete
Desciption: The HTML del tag is used for markup of deleted text.
Example: I am <del>very</del>
Output: I am

13.Tag: <FONT>
Name: Data font
Desciption: Using <FONT> we can modify tag using different Format style
& with different color.
Example: <FONT FACE="Times New Roman" SIZE="+20"
COLOR="#FF0000">Example</FONT>
Output: Example

14.Tag: <H1>
<H2>
<H3>
<H4>
<H5>
<H6>
Name: Heading Tags
Desciption: The HTML h1 tag is used for specifying level 1 headings. There are 6 levels of
headings (h1 - h6) with h1 the most important and h6 the least important.

Example: <H1>Heading 1 Example</H1>


<H2>Heading 2 Example</H2>
<H3>Heading 3 Example</H3>
<H4>Heading 4 Example</H4>
<H5>Heading 5 Example</H5>
<H6>Heading 6 Example</H6>

Output: heading1 Example


Heading2 Example
Heading3 Example

Heading4 Example
Heading5 Example
Heading6 Example

15.Tag: <HR>
Name: Horizontal Tag

Desciption: The HTML hr tag is used for creating a horizontal rule.

Example: <HR WIDTH="25%" COLOR="#6699FF" SIZE="6">


Output: _____________________

16.Tag: <IMG>
Name: Image
Desciption: The HTML img tag is used for embedding images into an HTML document.

Example: <IMG SRC="Earth.gif" WIDTH="41" HEIGHT="41" BORDER="0" ALT="a sentence about


your site">

16.Tag: <MARQUEE>
Name: Scrolling Tag

Desciption: This Tag can be used for scrolling text on screen either from Left to Right or Top to
Bottem

Example: <MARQUEE bgcolor="#CCCCCC" loop="-1" scrollamount="2" width="100%">Example


Marquee</MARQUEE>

17.Tag: <p>
Name: Paragraph tag
Description: The HTML p tag is used for defining a paragraph.
Example: 1:<br>
<br>
<p align="left">
This is an example<br>
displaying the use<br>
of the paragraph tag.<br>
<br>

Output: 1:

This is an example
displaying the use
of the paragraph tag.

18.Tag: <Table>
Name: Table Tag
Description: The HTML <table> tag is used for defining a table. The table tag contains
other tags that define the structure of the table. Each <tr> element represents a row in the
table. A row can have one or more <td> or <th> elements, which determine the columns in
the table. Specifically, <td> represents table data and <th> represents a table header.
Example: <table border="4" cellpadding="2" cellspacing="2" width="100%">
<tr>
<td>Column 1</td>
<td>Column 2</td>
</tr>
</table>
19.Tag: Type=CheckBox
Name: Checkbox
Description: CHECKBOX creates a checkbox which can be either on or off: CHECKBOX is
often used in groups to indicate a series of choices any one of which can be on or off: By
default, the checkbox is initially off. If you want the checkbox initially on, use the CHECKED
attribute.
Example: <INPUT TYPE=CHECKBOX NAME="mushrooms" >mushrooms<BR>
<INPUT TYPE=CHECKBOX NAME="greenpeppers">green peppers<BR>
<INPUT TYPE=CHECKBOX NAME="olives" >olives<BR>
<INPUT TYPE=CHECKBOX NAME="onions" >onions<P>

Output: mushrooms
green peppers
olives
onions

20.Tag: TYPE = RADIO

Name: Radio butten


Description: RADIO is used to create a series of choices of which only one can be
selected. The term "radio button" comes from the buttons for the radio in an automobile,
where selecting one radio station automatically de-selects all the others.
Example: <INPUT TYPE=RADIO NAME="pizzasize" VALUE="S">small<BR>
<INPUT TYPE=RADIO NAME="pizzasize" VALUE="M">medium<BR>
<INPUT TYPE=RADIO NAME="pizzasize" VALUE="L">large<P>

Output: small
medium
large

21.Tag: TYPE = PASSWORD

Name: Password
Description: PASSWORD indicates that the field is for typing in a password. PASSWORD
works just like a TEXT type field, with the difference that whatever is typed is not displayed
the screen (in case someone is watching over your shoulder or you have to leave the work
station). Instead of showing what you typed in, the browser displays a series of asterisks (*),
bullets (·), or something to show that you are typing, but not what you are typing.
Example: name: <INPUT TYPE=TEXT NAME="realname"><BR>
password: <INPUT TYPE=PASSWORD NAME="mypassword">
mvxkvxf
Output: name:
password:

22.Tag: <FORM>
Name: Form
Description: <FORM ...> indicates the beginning of a form. All other form tags go
inside <FORM ...>. In its simplest use, <FORM ...> can be used without any attributes: Most
forms require either the ACTION or NAME attributes to do anything meaningful
Example: <FORM>
name: <INPUT><BR>
email: <INPUT>
</FORM>

Output: name:
email:

You might also like