HTML Tags
HTML Tags
<HEAD></HEAD> Container for elements describing the current document. This section
contains no contents the browser should display in the body of the text.
The following elements are allowed inside the HEAD section:
BASE
BASEFONT
BGSOUND
ISINDEX
LINK
META
SCRIPT
STYLE
TITLE
Code:-
<FORM method="post" action="_URL_" onreset="alert('The form is reset')">
<TABLE>
<TR><TD>Name </TD><TD><INPUT type="text" name="name"></TD></TR>
<TR><TD>E-mail</TD><TD><INPUT type="text" name="email"></TD></TR>
<TR><TD colspan="2">Where are you from?
<SELECT name="findout">
<OPTION>Australia
<OPTION>USA
<OPTION>Japan
</SELECT></TD></TR>
<TR><TD colspan="2" align="center">
<INPUT type="submit" value="Send values">
<INPUT type="reset" value="Reset form"></TD>
</TR>
</TABLE>
</FORM>
<H1></H1> The elements H1, H2, H3, H4, H5 and H6 are used to create several levels
of headers, with H1 as the most important header and H6 as the least important.
Code:-
<H1 >Level 1 header</H1>
<H2 >Level 2 header</H2>
<H3 >Level 3 header</H3>
<H4>Level 4 header</H4>
<H5>Level 5 header</H5>
<H6>Level 6 header</H6>
Code:-
<HR size="2" width="50%" align="left" color="red" noshade size="5">
<I></I> Italic text .Change the text to italic. <italic></italic> can also be used.
Code:-
Change all or part <i>of you text to Italic</i>
Code:-
Code:-
<MENU>
<LI type="circle">The first item in the list.
<LI type="square">The second item.
<LI type="disc">And the last item.
</MENU>
Code:-
Code:-
<FORM>
What beer would you like today Sir?:
<SELECT>
<OPTION selected value="Fosters" >Fosters
<OPTION value="XXXX">XXXX
<OPTION value="Red Dog">Red Dog
</SELECT>
</FORM>
Code:-
This is the new craze where <s>you can strike out</s> text *smiles*
Example:-
This is the new craze where you can strike out text *smiles*
Code:-
<FORM>
What do you want on your pizza :
<SELECT>
<OPTION value="pepper">Extra peppers
<OPTION value="cheese" selected>Extra cheese
<OPTION value="pepper;cheese">Extra peppers & extra cheese
</SELECT>
</FORM>
Code:-
Code:-
<SUB></SUB> This is a container for text that should be displayed as a subscript, and,
if practical, using a smaller font (compared with normal text).
Code:-
Example:-
The <SUB> element lets you specify elements as B2H1T3.
Code:-
Example:-
<TABLE></TABLE>
HTML table tags. Create a table layout which can contain cells in rows and columns.
The cells of a table are specified with the TR and TD elements.
Code:-
<UL></UL>
Create an unordered list of items, where unordered means the individual items are not
numbered, but have a bullet in front of them. If you want numbered items use an ordered
list. The items in the list are identified with the LI element.
Code:-
<U></U>
Underline your text.
<TR></TR>
Define a row inside a table.
<TD></TD>
HTML table tags. The container for a cell in a table. Inside this you can put all the HTML
coding
you want to appear in the cell.
<SMALL></SMALL> Draw the text using a smaller font than the one that is used for
normal text.
<Q></Q> This is used to enclose short quotations from other works in the page.
Example:
This tag is used to enclose short “quotations “from other works in the page.
<PRE></PRE> This element allows you to show preformatted text as it is, using the
supplied whitespace of the text.
<P></P> This indicates a paragraph in the document. It is a container but most browsers
allow you to omit the closing element.
<DIV></DIV> HTML DIV tags. This element is a general container for a part of the
contents of a page. Through the DIV element you can add attributes, like style
information, to this whole division. The DIV element will not show anything when used
without any other attribute. A division will terminate a paragraph opened with the P
element.
<DIV align="center"> is the same as the deprecated <CENTER> element.
<BR> Line Break. Break the current line and continue on the next line
<BIG></BIG> Increase the current size of the font by 1. The maximum size is 7.