Simple
Tags Illustrated 
Title Tags:
<TITLE>Unit #2:
Demonstrating HTML tags</TITLE>
The text within these tags will
appear on the title line in your browser. See above.

Heading Tags:
<H1> This is a Heading 1:
</H1>
<H2> This is a Heading
2: </H2>
<H3> This is a Heading 3:
</H3>
<H4> This is a Heading 4:
</H4>
<H5> This is a Heading 5:
</H5>
<H6> This is a Heading
6: </H6>
Horizontal
Lines tag followed by demo:
These rules will look different
using different browsers. Netscape does not support color for horizontal
lines.
<HR>
<HR
WIDTH="50%" size="8" NOSHADE
COLOR="#00FF00" ALIGN="LEFT">
<HR WIDTH="25%"
size="4" NOSHADE COLOR="#FF0000"
ALIGN="CENTER">
<HR WIDTH="75%"
size="16" ALIGN="RIGHT">
Paragraph
Formatting
A new paragraph is started
using <P> with the optional end tag </P>
Centering text on the line
using <p align="center">.. </p>
Left aligned text using
<p align="left">.. </p>
Right aligned text using
<p align="right">.. </p>
Extra vertical space can be
produced using the Break tag. <BR>
which causes a line break without starting a new paragraph.
Comments
Within your Web
page text file all text enclosed by <!-- will be ignored by the browser. That is they will
not be displayed.-->
Pre-formatted Text
using the <pre> tag
Preserving White Space with the Pre-formatted Element.
This is a text document which includes the tab key pressed
many times, plus multiple blank spaces.
Preserving White Space with the Pre-formatted Element.
This is a text document which includes the tab key pressed
many times, plus multiple blank spaces.
Name Course Major
John Doe CSC 392 CSC
Alice Green CSC 392 CSC
Bob Brown CSC 392 EGR
Joel Gray CSC 392 CSC
If you have created a text document where you have used the tab
key (tab key pressed twice) and you want the tab
formatting brought into an HTML document with the least amount
of effort. (12 spaces) You can use surround the text
within the tags <PRE> and </PRE>.
Last updated on 01/02/2004 by L.M. Hicks |