0% found this document useful (0 votes)
35 views

HTML Tags Chart: Tag Name Code Example Browser View

<INPUT> The <INPUT> tag defines different types of form input fields, such as text fields, checkboxes, radio buttons, submit buttons, and more. Examples show how to create text input fields, submit buttons, and an image submit button within a <FORM> tag.

Uploaded by

Veeru Svn
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

HTML Tags Chart: Tag Name Code Example Browser View

<INPUT> The <INPUT> tag defines different types of form input fields, such as text fields, checkboxes, radio buttons, submit buttons, and more. Examples show how to create text input fields, submit buttons, and an image submit button within a <FORM> tag.

Uploaded by

Veeru Svn
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 9

HTML Tags Chart

To use any of the following HTML tags, simply select the HTML code you'd like and
copy and paste it into your web page.

Tag Name Code Example Browser View


<!--This can be viewed in the HTML part of
<!-- comment Nothing will show (Tip)
a document-->
<A
<A - anchor HREF="http://www.yourdomain.com/">Visit Visit Our Site (Tip)
Our Site</A>
<B> bold <B>Example</B> Example
<BIG> big (text) <BIG>Example</BIG> Example (Tip)
body of
HTML <BODY>The content of your HTML Contents of your web page
<BODY>
documen page</BODY> (Tip)
t
The contents of your web
The contents of your page<BR>The page
<BR> line break
contents of your page The contents of your web
page

<CENTER>This will center your


<CENTER> center This will center your
contents</CENTER>
contents
<DL> Definition Term
<DT>Definition Term Definition of the
definition
<DD>Definition of the term term
<DD> descripti
<DT>Definition Term Definition Term
on
<DD>Definition of the term Definition of the
</DL> term
<DL> Definition Term
<DT>Definition Term Definition of the
definition <DD>Definition of the term term
<DL>
list <DT>Definition Term Definition Term
<DD>Definition of the term Definition of the
</DL> term
<DL> Definition Term
<DT>Definition Term Definition of the
definition <DD>Definition of the term term
<DT>
term <DT>Definition Term Definition Term
<DD>Definition of the term Definition of the
</DL> term
This is an <EM>Example</EM> of using This is an Example of
<EM> emphasis
the emphasis tag using the emphasis tag
embed <EMBED src="yourfile.mid" width="100%"
<EMBED>
object height="60" align="center"> (Tip)
<EMBED src="yourfile.mid" autostart="true"
embed hidden="false" loop="false">
<EMBED>
object <noembed><bgsound src="yourfile.mid"
loop="1"></noembed> Music will begin playing
when your page is loaded
and will only play one time.
A control panel will be
displayed to enable your
visitors to stop the music.
<FONT FACE="Times New
<FONT> font Example (Tip)
Roman">Example</FONT>
<FONT FACE="Times New Roman"
<FONT> font
SIZE="4">Example</FONT> Example (Tip)
<FONT FACE="Times New Roman"
<FONT> font SIZE="+3"
COLOR="#FF0000">Example</FONT>
Example (Tip)
<FORM
action="mailto:[email protected]">
Name: <INPUT name="Name" value=""
Name: (Tip)
size="10"><BR>
<FORM> form Email: <INPUT name="Email" value="" Email:
size="10"><BR>
Submit Query
<CENTER><INPUT
type="submit"></CENTER>
</FORM>

<H1> heading 1 <H1>Heading 1 Example</H1> Heading 1


Example
<H2> heading 2 <H2>Heading 2 Example</H2>
Heading 2 Example

<H3> heading 3 <H3>Heading 3 Example</H3>


Heading 3 Example
<H4> heading 4 <H4>Heading 4 Example</H4>
Heading 4 Example

<H5> heading 5 <H5>Heading 5 Example</H5>


Heading 5 Example

<H6> heading 6 <H6>Heading 6 Example</H6>


Heading 6 Example

heading
of HTML <HEAD>Contains elements describing the
<HEAD> Nothing will show
documen document</HEAD>
t
Contents of your web page
horizonta
<HR> <HR> (Tip)
l rule
Contents of your web page
Contents of your web page
horizonta
<HR> <HR WIDTH="50%" SIZE="3">
l rule
Contents of your web page
Contents of your web page
horizonta
<HR> <HR WIDTH="50%" SIZE="3" NOSHADE>
l rule
Contents of your web page
<HR> Contents of your web page
horizonta <HR WIDTH="75%" COLOR="#FF0000"
(Internet
l rule SIZE="4">
Explorer) Contents of your web page
<HR> Contents of your web page
horizonta <HR WIDTH="25%" COLOR="#6699FF"
(Internet
l rule SIZE="6">
Explorer) Contents of your web page
<HTML><HEAD><META><TITLE>Title of
hypertext
your web
<HTML> markup Contents of your web page
page</TITLE></HEAD><BODY>HTML web
language
page contents</BODY></HTML>
<I> italic <I>Example</I> Example
<IMG SRC="Earth.gif" WIDTH="41"
<IMG> image HEIGHT="41" BORDER="0" ALT="a
sentence about your web site"> (Tip)
Example 1:

<FORM METHOD=post ACTION="/cgi- Example 1: (Tip)


input bin/example.cgi">
<INPUT>
field <INPUT type="text" size="10" Submit
maxlength="30">
<INPUT type="Submit" VALUE="Submit">
</FORM>
Example 2:

<FORM METHOD=post ACTION="/cgi-


bin/example.cgi"> Example 2: (Tip)
<INPUT>
input <INPUT type="text" STYLE="color:
(Internet
field #FFFFFF; font-family: Verdana; font-weight: Submit
Explorer)
bold; font-size: 12px; background-color:
#72A4D2;" size="10" maxlength="30">
<INPUT type="Submit" VALUE="Submit">
</FORM>
Example 3:
Example 3: (Tip)
<FORM METHOD=post ACTION="/cgi-
input
<INPUT> bin/example.cgi">
field
<TABLE BORDER="0" CELLSPACING="0"
CELLPADDING="2"><TR><TD
BGCOLOR="#8463FF"><INPUT type="text"
size="10" MAXLENGTH="30"></TD><TD
BGCOLOR="#8463FF" VALIGN="Middle">
<INPUT type="image" name="submit"
src="yourimage.gif"></TD></TR> </TABLE>
</FORM>
Example 4:
Example 4: (Tip)
<FORM METHOD=post ACTION="/cgi-
bin/example.cgi">
Enter Your Comments:<BR>
input
<INPUT> <TEXTAREA wrap="virtual"
field
name="Comments" rows=3 cols=20
MAXLENGTH=100></TEXTAREA><BR>
<INPUT type="Submit" VALUE="Submit">
Submit Clear
<INPUT type="Reset" VALUE="Clear">
</FORM>
Example 5:

<FORM METHOD=post ACTION="/cgi-


bin/example.cgi">
<CENTER>
Select an option:
<SELECT> Example 5: (Tip)
<OPTION >option 1
input Select an option:
<INPUT> <OPTION SELECTED>option 2
field
<OPTION>option 3
<OPTION>option 4
<OPTION>option 5 Submit
<OPTION>option 6
</SELECT><BR>
<INPUT type="Submit"
VALUE="Submit"></CENTER>
</FORM>
<INPUT> input Example 6: Example 6: (Tip)
field
<FORM METHOD=post ACTION="/cgi- Select an option:
bin/example.cgi">
Select an option:<BR> Option 1
<INPUT type="radio" name="option">
Option 2
Option 1
<INPUT type="radio" name="option" Option 3
CHECKED> Option 2
<INPUT type="radio" name="option"> Select an option:
Option 3
<BR> Selection 1
<BR>
Select an option:<BR> Selection 2
<INPUT type="checkbox" Selection 3
name="selection"> Selection 1
<INPUT type="checkbox" name="selection" Submit
CHECKED> Selection 2
<INPUT type="checkbox"
name="selection"> Selection 3
<INPUT type="Submit" VALUE="Submit">
</FORM>
Example 1: Example 1: (Tip)
 List item 1
<MENU>
<LI type="disc">List item 1 o List item 2
<LI type="circle">List item 2
<LI type="square">List item 3
 List item 3
</MENU>
<LI> list item
Example 2:
Example 2:
<OL type="i">
<LI>List item 1 i. List item 1
<LI>List item 2 ii. List item 2
<LI>List item 3 iii. List item 3
<LI>List item 4
</OL> iv. List item 4
Visit our <A
<LINK> link HREF="http://www.yourdomain.com/">sit Visit our site
e</A>

<MARQUE
<MARQUEE bgcolor="#CCCCCC" loop="-
E> scrolling
1" scrollamount="2" width="100%">Example
(Internet text
Marquee</MARQUEE>
Explorer)
(Tip)

<MENU>  List item 1


<LI type="disc">List item 1
<MENU> menu <LI type="circle">List item 2 o List item 2
<LI type="square">List item 3
</MENU>  List item 3
<META name="Description"
content="Description of your site">
<META> meta Nothing will show (Tip)
<META name="keywords"
content="keywords describing your site">
<META HTTP-EQUIV="Refresh"
<META> meta CONTENT="4;URL=http://www.yourdomain. Nothing will show (Tip)
com/">
<META http-equiv="Pragma" content="no-
<META> meta Nothing will show (Tip)
cache">
<META> meta <META name="rating" content="General"> Nothing will show (Tip)
<META> meta <META name="ROBOTS" content="ALL"> Nothing will show (Tip)
<META NAME="ROBOTS"
<META> meta Nothing will show (Tip)
content="NOINDEX,FOLLOW">
<OL> ordered Numbered Numbered
list 1. List item 1
<OL> 2. List item 2
<LI>List item 1 3. List item 3
<LI>List item 2 4. List item 4
<LI>List item 3
<LI>List item 4 Numbered Special Start
</OL>
5. List item 1
Numbered Special Start
6. List item 2
7. List item 3
<OL start="5">
8. List item 4
<LI>List item 1
<LI>List item 2
<LI>List item 3 Lowercase Letters
<LI>List item 4
</OL> a. List item 1
b. List item 2
Lowercase Letters c. List item 3
d. List item 4
<OL type="a">
<LI>List item 1 Capital Letters
<LI>List item 2
<LI>List item 3 A. List item 1
<LI>List item 4 B. List item 2
</OL> C. List item 3
D. List item 4
Capital Letters
Capital Letters Special
<OL type="A"> Start
<LI>List item 1
<LI>List item 2
C. List item 1
<LI>List item 3
D. List item 2
<LI>List item 4
E. List item 3
</OL>
F. List item 4
Capital Letters Special Start
Lowercase Roman
Numerals
<OL type="A" start="3">
<LI>List item 1
<LI>List item 2 i. List item 1
<LI>List item 3 ii. List item 2
<LI>List item 4 iii. List item 3
</OL> iv. List item 4

Lowercase Roman Numerals Capital Roman Numerals

<OL type="i"> I. List item 1


<LI>List item 1 II. List item 2
<LI>List item 2 III. List item 3
<LI>List item 3 IV. List item 4
<LI>List item 4
</OL> Capital Roman Numerals
Special Start
Capital Roman Numerals
VII. List item 1
<OL type="I"> VIII. List item 2
<LI>List item 1
IX. List item 3
<LI>List item 2
<LI>List item 3 X. List item 4
<LI>List item 4
</OL>

Capital Roman Numerals Special Start

<OL type="I" start="7">


<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</OL>
<FORM METHOD=post ACTION="/cgi-
bin/example.cgi">
<CENTER>
Select an option:
<SELECT>
<OPTION>option 1
listbox <OPTION SELECTED>option 2 Select an option: (Tip)
<OPTION>
option <OPTION>option 3
<OPTION>option 4
<OPTION>option 5
<OPTION>option 6
</SELECT><BR>
</CENTER>
</FORM>
<P> paragrap This is an example displaying the use of the This is an example
h paragraph tag. <P> This will create a line displaying the use of the
break and a space between lines. paragraph tag.

Attributes: This will create a line


break and a space
Example 1:<BR> between lines.
<BR>
<P align="left"> Attributes:
This is an example<BR>
displaying the use<BR> Example 1:
of the paragraph tag.<BR>
<BR> This is an example
Example 2:<BR> displaying the use
<BR> of the paragraph tag.
<P align="right">
This is an example<BR> Example 2:
displaying the use<BR>
of the paragraph tag.<BR> This is an example
<BR> displaying the use
Example 3:<BR> of the paragraph tag.
<BR>
<P align="center">
Example 3:
This is an example<BR>
displaying the use<BR>
This is an example
of the paragraph tag.
displaying the use
of the paragraph tag.
small
<SMALL> <SMALL>Example</SMALL> Example (Tip)
(text)
strong
<STRONG> <STRONG>Example</STRONG> Example
emphasis
Example 1:

<TABLE BORDER="4" CELLPADDING="2"


CELLSPACING="2" WIDTH="100%">
<TR>
<TD>Column 1</TD>
<TD>Column 2</TD>
</TR>
</TABLE>

Example 2: (Internet Explorer)


Example 1: (Tip)
<TABLE BORDER="2" Column 1 Column 2
BORDERCOLOR="#336699"
CELLPADDING="2" CELLSPACING="2"
WIDTH="100%">
Example 2: (Tip)
<TR>
<TD>Column 1</TD>
<TABLE> table <TD>Column 2</TD> Column 1 Column 2
</TR>
</TABLE>

Example 3: Example 3: (Tip)

<TABLE CELLPADDING="2" Column 1 Column 2


CELLSPACING="2" WIDTH="100%"> Row 2 Row 2
<TR>
<TD BGCOLOR="#CCCCCC">Column
1</TD>
<TD BGCOLOR="#CCCCCC">Column
2</TD>
</TR>
<TR>
<TD>Row 2</TD>
<TD>Row 2</TD>
</TR>
</TABLE>
<TABLE BORDER="2" CELLPADDING="2"
CELLSPACING="2" WIDTH="100%">
<TR>
<TD> table data <TD>Column 1</TD>
Column 1 Column 2
<TD>Column 2</TD>
</TR>
</TABLE>
<TH> table <DIV align="center"><TABLE> Column Column Column
<TR>
<TH>Column 1</TH>
<TH>Column 2</TH>
<TH>Column 3</TH>
</TR>
<TR>
<TD>Row 2</TD>
<TD>Row 2</TD>
<TD>Row 2</TD>
</TR> 1 2 3
<TR> Row 2 Row 2 Row 2
header
<TD>Row 3</TD> Row 3 Row 3 Row 3
<TD>Row 3</TD> Row 4 Row 4 Row 4
<TD>Row 3</TD>
</TR>
<TR>
<TD>Row 4</TD>
<TD>Row 4</TD>
<TD>Row 4</TD>
</TR>
</TABLE>
</DIV>
Title of your web page will
documen
<TITLE> <TITLE>Title of your HTML page</TITLE> be viewable in the title bar.
t title
(Tip)
<TABLE BORDER="2" CELLPADDING="2"
CELLSPACING="2" WIDTH="100%">
<TR>
<TR> table row <TD>Column 1</TD> Column 1 Column 2
<TD>Column 2</TD>
</TR>
</TABLE>
<TT> teletype <TT>Example</TT> Example
<U> underline <U>Example</U> Example
Example 1:<BR>
<BR> Example 1:
<UL>
<LI>List item 1  List item 1
<LI>List item 2  List item 2
</UL>
<BR>
unordere Example 2:<BR> Example 2:
<UL>
d list <UL type="disc">
<LI>List item 1
<LI>List item 2  List item 1
<UL type="circle">  List item 2
<LI>List item 3 o List item 3
<LI>List item 4
</UL> o List item 4
</UL>

You might also like