HTML tags
HTML tags
source: www.web-source.net
Tag Name Code Example Browser View
<!--This can be viewed in the HTML part of a document-
<!-- comment Nothing will show
->
<A HREF="http://www.yourdomain.com/">Visit Our
<A - anchor Visit Our Site
Site</A>
<B> bold <B>Example</B> Example
<BIG> big (text) <BIG>Example</BIG> Example
body of
<BODY> <BODY>The content of your page</BODY> Contents of your webpage
document
The contents of your page<BR>The contents of your The contents of your page
<BR> line break
page The contents of your page
<CENTER> center <CENTER>This will center your contents</CENTER> This will center your contents
<DL>
Definition Term
<DT>Definition Term
Definition of the term
definition <DD>Definition of the term
<DD> Definition Term
description <DT>Definition Term
Definition of the term
<DD>Definition of the term
</DL>
<DL>
Definition Term
<DT>Definition Term
Definition of the term
definition <DD>Definition of the term
<DL> Definition Term
list <DT>Definition Term
Definition of the term
<DD>Definition of the term
</DL>
<DL>
Definition Term
<DT>Definition Term
Definition of the term
definition <DD>Definition of the term
<DT> Definition Term
term <DT>Definition Term
Definition of the term
<DD>Definition of the term
</DL>
This is an <EM>Example</EM> of using the emphasis This is an Example of using
<EM> emphasis
tag the emphasis tag
embed <EMBED src="yourfile.mid" width="100%" height="60"
<EMBED>
object align="center">
<FONT> font
<FONT FACE="Times New Roman" SIZE="+3"
COLOR="#FF0000">Example</FONT> Example
<FORM action="mailto:[email protected]"> Name:
Name: <INPUT name="Name" value="" size="10"><BR>
Email:
<FORM> form Email: <INPUT name="Email" value="" size="10"><BR>
<CENTER><INPUT type="submit"></CENTER> Submit
</FORM>
Heading 1
Example
<H1> heading 1 <H1>Heading 1 Example</H1>
Heading 2
<H2> heading 2 <H2>Heading 2 Example</H2>
Example
Heading 4 Example
<H4> heading 4 <H4>Heading 4 Example</H4>
Heading 5 Example
<H5> heading 5 <H5>Heading 5 Example</H5>
Heading 6 Example
<H6> heading 6 <H6>Heading 6 Example</H6>
Select an option:
<FORM METHOD=post ACTION="/cgi-bin/example.cgi">
Select an option:<BR> Option 1
<INPUT type="radio" name="option"> Option 1
<INPUT type="radio" name="option" CHECKED> Option 2 Option 2
<INPUT type="radio" name="option"> Option 3 Option 3
<INPUT> input field <BR>
<BR> Select an option:
Select an option:<BR>
<INPUT type="checkbox" name="selection"> Selection 1 Selection 1
<INPUT type="checkbox" name="selection" CHECKED>
Selection 2
Selection 2
<INPUT type="checkbox" name="selection"> Selection 3 Selection 3
<INPUT type="Submit" VALUE="Submit"> Submit
</FORM>
<OL type="a">
a. List item 1
<LI>List item 1 b. List item 2
<LI>List item 2 c. List item 3
<LI>List item 3 d. List item 4
<LI>List item 4
</OL>
<OPTION> listbox <FORM METHOD=post ACTION="/cgi-bin/example.cgi"> Select an option:
option <CENTER> option 2
Select an option:
<SELECT>
<OPTION>option 1
<OPTION SELECTED>option 2
<OPTION>option 3
<OPTION>option 4
<OPTION>option 5
<OPTION>option 6
</SELECT><BR>
</CENTER>
</FORM>
This is an example displaying the use of the paragraph This is an example displaying the
tag. <P> This will create a line break and a space use of the paragraph tag.
between lines.
This will create a line break and a
Attributes: space between lines.
Example 1:<BR>
Attributes:
<BR>
<P align="left">
This is an example<BR> Example 1:
displaying the use<BR>
of the paragraph tag.<BR> This is an example
<BR> displaying the use
<P> paragraph of the paragraph tag.
Example 2:<BR>
<BR>
<P align="right"> Example 2:
This is an example<BR>
displaying the use<BR> This is an example
of the paragraph tag.<BR> displaying the use
<BR> of the paragraph tag.
Example 3:<BR>
<BR> Example 3:
<P align="center">
This is an example<BR> This is an example
displaying the use<BR> displaying the use
of the paragraph tag. of the paragraph tag.
<SMALL> small (text) <SMALL>Example</SMALL> Example
strong
<STRONG> <STRONG>Example</STRONG> Example
emphasis
<TABLE> table Example 1: Example 1:
Column 1 Column 2
<TABLE BORDER="4" CELLPADDING="2"
CELLSPACING="2" WIDTH="100%">
<TR>
<TD>Column 1</TD> Example 2:
<TD>Column 2</TD>
</TR> Column 1 Column 2
</TABLE>
Example 3:
Web-Source.net http://www.web-source.net
Your Guide to Professional Web Site Design and Development
Hosted with Host4Profit.
Copyright © 1997-2023 Brajusta Publishing, Inc., All Rights Reserved