Some common html elements and their attributes are given in the table below
Element |
Attributes |
Tags |
Description |
A |
Href |
<a>…</a> |
This is called as the anchor element. Its is used to facilitate hypertext links. |
Applet |
Codebase,code, width,height, Hspace,vspace |
<applet></applet> |
It is used for embedding java applets in an html document |
B |
|
<b>……</b> |
Any text enclosed within the tags is displayed as bold text. |
Blockquote |
|
<blockquote><blockquote> |
It indents the text. |
Body |
Background bgcolor, text,link |
<body>,.<body> |
The body of the html document is enclosed within it. Using the attributes background and bgcolor you can specify and kind of background like image or color. The default text and hyperlink colors can be specified by using the text and link attributes. |
CAPTION |
ALIGN |
<caption></caption> |
It creates caption for table using the align attribute caption can be displayed at the top or bottom of a table. |
Cite |
|
<cite>.</cite> |
It is used for quoting other’s work or titles. |
Code |
|
<code>.</code> |
It is used to show computed code text strings. |
Font |
Size,color,face |
<font>….</font> |
It formats text with the specified font. The size attribute sets the size. The color attributes determines the color of the text and face attributes sets the type of the font. |
Frameset |
Cols, rows |
<frameset></frameset> |
It is used specify the position and layout of the frames. |
Frame |
SRC,NAME, NORESIZE |
<FRAME> |
IT IS USED OFR DEFING A FRRAME. THE SRC ATTRIBUTE is used to specify the target page. The name attributes is used to identify the frame. The no resize attribute is used to prevent resizing of the frames. |
H1 H2 H3 H4 H5 H6 |
Align |
<h1>..</h1> “ “ †’’ †|
It creates six dirrent levels of headings. By using the align attribute, you can align the heading to the headings to the left the center or the right of the browser screen. |
Head |
|
<head>…..</head> |
It encloses the document header. It can enclose other elements like title and meta. |
Hr |
|
<hr> |
It draws a horizontal line |
Html |
|
<Html>...</html> |
It identifies the document a html. |
I |
|
<i>….</i> |
It creates italicized text |
Img |
Src,alt,height,width, hspace,vspace |
<img>.</img> |
It inserts an image. |
Li |
|
<li>..</li> |
It specifies a list item existing in a numbered or bulleted list. |
Ol |
Start,type |
<ol>…..</ol> |
It created a numbered list. The start option starts the list with the specified number. Using the type option, you can have different styles of the numbered list. |
P |
|
<p>..</p> |
It crates a paragraph |
Strong |
|
<strong>…</strong> |
It displays bold text |
Sub |
|
<sub>.</sub> |
It displays text an subscript. |
Sup |
|
<sup>..</sup> |
It displays text as superscripts. |
Table |
Border,width,cellspacing cellpadcding |
<table>..</table> |
It creates a table. |
Td |
|
<td>..</td> |
It inserts information in table cells. |
Th |
|
<th>..</th> |
It inserts a table header cell. |
Title |
|
<title>….</title> |
IT inserts the title of the documents. |
Tr |
|
<tr>..</tr> |
It inserts a table row. |
U |
|
<U>..</U> |
Any text enclosed within the tag is underlined. |
Ul |
|
<ul>..</ul> |
It crates a bulleted list. |