HTML TagsHere is a list of common HTML tags along with a description and a brief example of how each is used.
<!-- -->
<!-- This is where you would type comments that you don't want to be viewed on a browser. --> Back to the list.
<A>
<a href="http://www.cityscape.net"> Back to the list.
<AREA>
<area shape="rect" coords="50, 25, 150, 125" href="http://www.sample.com"> Back to the list.
<B>
<b>This text will be bold.</b> Back to the list.
<BGSOUND>
<bgsound href="http://www.sample.com/sound.wav"> Back to the list.
<BIG>
<big>This text will be displayed larger.</big> Back to the list.
<BLOCKQUTE>
<blockquote>"Hello there!!"</blockquote> Back to the list.
<BODY>
<body>All of the attributes making up your entire document will be between these tags.</body> Back to the list.
<BR>
This text will be displayed</br> Back to the list.
<CAPTION>
<caption align=top> When used with the TABLE tag, this would appear above the table</caption> Back to the list.
<CENTER>
<center>This text will be centered in your document</center> Back to the list.
<DD>
<dl><dt>Any Word<dd>The definition of that word</dl> Back to the list.
<DIV>
<div>This text is a section in a
document</div> Back to the list.
<DL>
<dl><dt>Any Word<dd>The definition of that word</dl> Back to the list.
<DT>
<dl><dt>Any Word<dd>The definition of that word</dl> Back to the list.
<EM>
<em>This text will be emphasized.</em> Back to the list.
<FONT>
<font face="arial" size="+2" color="orange">This text will be orange arial, two pts bigger than the base font..</font> Back to the list.
<FORM>
<FORM METHOD=POST ACTION="http://cgi.cityscape.net/cgi-bin/FormMail.pl"> Back to the list.
<FRAME>
<frame frameborder=0 scrolling=no src="sample.htm"> Back to the list.
<FRAMESET>
<frameset scrolling=yes cols="25%, 50%, *"> Back to the list.
<H1,H2,H3,H4,H5,H6>
<h1>This text will is a header.</h1> Back to the list.
<HEAD>
<head>Everything between these tags is considered the header of this document.</head> Back to the list.
<HR>
<hr size="5" width=50%>This tag will create a horizontal rule with a thickness of 5 pixels, and a width of 50% of the webpage. Back to the list.
<HTML>
<html> Back to the list.
<I>
<i>This text will be in italics.</i> Back to the list.
<IMG>
<img src="http://www.cityscape.net/logo.jpg"> Back to the list.
<INPUT>
<FORM METHOD=POST ACTION="http://cgi.cityscape.net/cgi-bin/FormMail.pl"> Back to the list.
<LI>
<ul> Back to the list.
<LISTING>
<listing>This is fixed-width text</listing> Back to the list.
<MAP>
<map name="map1"> Back to the list.
<MARQUEE>
<marquee>This will scroll across the webpage.</marquee> Back to the list.
<MENU>
<menu> Back to the list.
<NOFRAMES>
<frameset> Back to the list.
<OL>
<ol> Back to the list.
<OPTION>
<option value=pick me> Back to the list.
<P>
<p>This text will be seperated form the text above it.</p> Back to the list.
<PRE>
<pre>This text Back to the list.
<S>
<s>This text will be display as strikethrough.</s> Back to the list.
<SELECT>
<select name="Cars" multiple size="1">
<option value="1">BMW
<option value="2">PORSCHE
<option value="3" selected>MERCEDES
</select> Back to the list.
<SMALL>
<small>This text will be smaller.</small> Back to the list.
<SPAN>
<span class=.clssmall>This text will take on the settings defined under .clssmall in the style sheet.</span> Back to the list.
<STRIKE>
<strike>This text will be displayed as strikethrough.</strike> Back to the list.
<STRONG>
<strong>This text will be bold.</strong> Back to the list.
<SUB>
This text will be normal.<sub>This text will be subscript.bold.</sub> Back to the list.
<SUP>
This text will be normal.<sup>This text will be superscript.</sup> Back to the list.
<TABLE>
<table border=1 width=80%>
<tr>
<td>Row 1, Column 1 text.</td>
<td>Row 1, Column 2 text.</td>
</tr>
<tr>
<td>Row 2, Column 1 text.</td>
<td>Row 2, Column 2 text.</td>
</tr>
</table>Back to the list.
<TD>
<table border=1 width=80%>
<tr>
<td>Row 1, Column 1 text.</td>
<td>Row 1, Column 2 text.</td>
</tr>
<tr>
<td>Row 2, Column 1 text.</td>
<td>Row 2, Column 2 text.</td>
</tr>
</table>Back to the list.
<TEXTAREA>
<textarea cols=10 name=my textbox rows=40> Back to the list.
<TITLE>
<title>This text will be displayed in the title bar of a viewer's browser.</title> Back to the list.
<TR>
<table border=1 width=80%>
<tr>
<td>Row 1, Column 1 text.</td>
<td>Row 1, Column 2 text.</td>
</tr>
<tr>
<td>Row 2, Column 1 text.</td>
<td>Row 2, Column 2 text.</td>
</tr>
</table>Back to the list.
<U>
<u>This text will be underlined.</u> Back to the list.
<UL>
<ul> Back to the list.
In the example you can see that capitalization is not important when using HTML tags.
|