Sie sind auf Seite 1von 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 a
<!-- comment Nothing will show (Tip)
document-->
<A HREF="http://www.yourdomain.com/">Visit Our
<A - anchor Visit Our Site (Tip)
Site</A>
<B> bold <B>Example</B> Example
<BIG> big (text) <BIG>Example</BIG> Example (Tip)
body of
Contents of your web page
<BODY> HTML <BODY>The content of your HTML page</BODY>
(Tip)
document
The contents of your page<BR>The contents of The contents of your web page
<BR> line break
your page The contents of your web page
<CENTER>This will center your
<CENTER> center This will center your contents
contents</CENTER>
<DL>
<DT>Definition Term Definition Term
definition <DD>Definition of the term Definition of the term
<DD>
description <DT>Definition Term Definition Term
<DD>Definition of the term Definition of the term
</DL>
<DL>
<DT>Definition Term Definition Term
definition <DD>Definition of the term Definition of the term
<DL>
list <DT>Definition Term Definition Term
<DD>Definition of the term Definition of the term
</DL>
<DL>
<DT>Definition Term Definition Term
definition <DD>Definition of the term Definition of the term
<DT>
term <DT>Definition Term Definition Term
<DD>Definition of the term Definition of the term
</DL>
This is an <EM>Example</EM> of using This is an Example of using
<EM> emphasis
the emphasis tag the emphasis tag
embed <EMBED src="yourfile.mid" width="100%"
<EMBED>
object height="60" align="center"> (Tip)
<EMBED> embed <EMBED src="yourfile.mid" autostart="true"
object hidden="false" loop="false">
<noembed><bgsound src="yourfile.mid" Music will begin playing when
loop="1"></noembed> 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> font
<FONT FACE="Times New Roman" SIZE="+3"
COLOR="#FF0000">Example</FONT> Example (Tip)
<FORM action="mailto:you@yourdomain.com">
Name: <INPUT name="Name" value=""
size="10"><BR> Name: (Tip)
<FORM> form Email: <INPUT name="Email" value="" Email:
size="10"><BR>
<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
<HEAD>Contains elements describing the
<HEAD> HTML Nothing will show
document</HEAD>
document

horizontal Contents of your web page


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

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


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

<FORM METHOD=post ACTION="/cgi-


bin/example.cgi">
<INPUT> Example 2: (Tip)
<INPUT type="text" STYLE="color: #FFFFFF; font-
(Internet input field
family: Verdana; font-weight: bold; font-size: 12px;
Explorer)
background-color: #72A4D2;" size="10"
maxlength="30">
<INPUT type="Submit" VALUE="Submit">
</FORM>
Example 3:

<FORM METHOD=post ACTION="/cgi-


bin/example.cgi">
<TABLE BORDER="0" CELLSPACING="0"
CELLPADDING="2"><TR><TD
<INPUT> input field Example 3: (Tip)
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:

<FORM METHOD=post ACTION="/cgi-


bin/example.cgi">
Example 4: (Tip)
Enter Your Comments:<BR>
<INPUT> input field <TEXTAREA wrap="virtual" name="Comments"
rows=3 cols=20
MAXLENGTH=100></TEXTAREA><BR>
<INPUT type="Submit" VALUE="Submit">
<INPUT type="Reset" VALUE="Clear">
</FORM>
<INPUT> input field Example 5:
Example 5: (Tip)
<FORM METHOD=post ACTION="/cgi-
bin/example.cgi"> Select an option:
<CENTER>
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>
<INPUT type="Submit"
VALUE="Submit"></CENTER>
</FORM>
Example 6:

<FORM METHOD=post ACTION="/cgi-


bin/example.cgi">
Select an option:<BR> Example 6: (Tip)
<INPUT type="radio" name="option"> Option 1
<INPUT type="radio" name="option" CHECKED> Select an option:
Option 2 Option 1
<INPUT type="radio" name="option"> Option 3 Option 2
<BR> Option 3
<INPUT> input field
<BR>
Select an option:<BR> Select an option:
<INPUT type="checkbox" name="selection"> Selection 1
Selection 1 Selection 2
<INPUT type="checkbox" name="selection" Selection 3
CHECKED> Selection 2
<INPUT type="checkbox" name="selection">
Selection 3
<INPUT type="Submit" VALUE="Submit">
</FORM>
Example 1: (Tip)
Example 1:
• 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
</MENU>  List item 3
<LI> list item
Example 2:
Example 2:
<OL type="i">
<LI>List item 1 i. List item 1
<LI>List item 2
<LI>List item 3 ii. List item 2
<LI>List item 4 iii. List item 3
</OL>
iv. List item 4
Visit our <A
<LINK> link Visit our site
HREF="http://www.yourdomain.com/">site</A>
<MARQUEE> <MARQUEE bgcolor="#CCCCCC" loop="-1"
scrolling
(Internet scrollamount="2" width="100%">Example (Tip)
text
Explorer) Marquee</MARQUEE>
<MENU> menu <MENU> • List item 1
<LI type="disc">List item 1
<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 Nothing will show (Tip)
CONTENT="4;URL=http://www.yourdomain.com/">
<META> meta <META http-equiv="Pragma" content="no-cache"> Nothing will show (Tip)
<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 list Numbered Numbered

<OL> 1. List item 1


<LI>List item 1
<LI>List item 2 2. List item 2
<LI>List item 3 3. List item 3
<LI>List item 4 4. List item 4
</OL>
Numbered Special Start
Numbered Special Start

<OL start="5"> 5. List item 1


<LI>List item 1 6. List item 2
<LI>List item 2 7. List item 3
<LI>List item 3 8. List item 4
<LI>List item 4
</OL>
Lowercase Letters
Lowercase Letters
a. List item 1
<OL type="a"> b. List item 2
<LI>List item 1 c. List item 3
<LI>List item 2 d. List item 4
<LI>List item 3
<LI>List item 4
</OL> Capital Letters

Capital Letters A. List item 1


B. List item 2
<OL type="A"> C. List item 3
<LI>List item 1 D. List item 4
<LI>List item 2
<LI>List item 3
<LI>List item 4 Capital Letters Special Start
</OL>
C. List item 1
D. List item 2
E. List item 3
Capital Letters Special Start F. List item 4
<OL type="A" start="3"> Lowercase Roman Numerals
<LI>List item 1
<LI>List item 2
<LI>List item 3
i. List item 1
<LI>List item 4 ii. List item 2
</OL> iii. List item 3
iv. List item 4
Lowercase Roman Numerals
Capital Roman Numerals
<OL type="i">
<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

Capital Roman Numerals Capital Roman Numerals


Special Start
<OL type="I">
<LI>List item 1
<LI>List item 2 VII. List item 1
<LI>List item 3 VIII. List item 2
<LI>List item 4 IX. List item 3
</OL>
X. List item 4
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> paragraph This is an example displaying the use of the This is an example displaying
paragraph tag. <P> This will create a line break and the use of the paragraph tag.
a space between lines.
Attributes: This will create a line break and
a space between lines.
Example 1:<BR>
<BR> Attributes:
<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
Example 2:<BR> of the paragraph tag.
<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 (Tip)
strong
<STRONG> <STRONG>Example</STRONG> Example
emphasis
<TABLE> table Example 1: Example 1: (Tip)

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


CELLSPACING="2" WIDTH="100%"> Column 1 Column 2
<TR> Example 2: (Tip)
<TD>Column 1</TD>
<TD>Column 2</TD>
Column 1 Column 2
</TR>
</TABLE> Example 3: (Tip)

Example 2: (Internet Explorer) Column 1 Column 2


Row 2 Row 2
<TABLE BORDER="2"
BORDERCOLOR="#336699" CELLPADDING="2"
CELLSPACING="2" WIDTH="100%">
<TR>
<TD>Column 1</TD>
<TD>Column 2</TD>
</TR>
</TABLE>

Example 3:

<TABLE CELLPADDING="2" CELLSPACING="2"


WIDTH="100%">
<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>
<DIV align="center"><TABLE>
<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> Column Column Column
</TR> 1 2 3
table
<TH> <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>
document Title of your web page will be
<TITLE> <TITLE>Title of your HTML page</TITLE>
title viewable in the title bar. (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
<UL> unordered Example 1:<BR> Example 1:
list <BR>
<UL> • List item 1
<LI>List item 1
<LI>List item 2
• List item 2
</UL>
<BR>
Example 2:<BR>
<UL type="disc"> Example 2:
<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>

Das könnte Ihnen auch gefallen