BASIC
TEXT
STRUCTURES

These tags will allow you to format the text displayed on the page.
The following tags change the style of the text:
<strong> </strong>
<b> </b>
Either of these tags will create boldfaced text.
<i> </i>
These tags will create italicized text.
<u> </u>
These tags will create underlined text. (This is different from a
hyperlink. Those will be discussed later.)
The following tags change the style of the text:
<br>
This tag inserts a line break (a newline) into the text. It is one of the
few tags which does not consist of a set of two, a beginning and an ending.
<p>
This tag signifies the end of a paragraph. It is another one of the tags
which is not part of a set of two.
<hr>
This tag creates a horizontal rule, or line, across the screen.
<center> </center>
These tags will center whatever lies between them on the screen.
The following tags change the size of the text. They are called Header tags.
They produce text which is already boldfaced, and a newline is automatically
added to the end of the line. They come in sizes 1-6, where 1 is the largest
and 6 is the smallest. They are:
<h1> </h1>
<h2> </h2>
<h3> </h3>
<h4> </h4>
<h5> </h5>
<h6> </h6>
Example

Here is sample HTML which demonstrates all of the tags introduced above.
Sample 2:
<html>
<head>
<title>Sample Page #2</title>
<!-- This page created by Valerie Bradley 13 June 1997 -->
</head>
<body>
<strong>This demonstrates the strong tags.</strong><br>
<i>This demonstrates the italics tags.</i><br>
<u>This demonstrates the underline tags.</u><br>
<strong><i><u>This is a combination of all three!
</u></i></strong><br>
<hr>
<center>
<h1>This uses header #1</h1>
<h2>This uses header #2</h2>
<h3>This uses header #3</h3>
<h4>This uses header #4</h4>
<h5>This uses header #5</h5>
<h6>This uses header #6</h6>
</center>
</body>
</html>
This is how it would look on a browser.
Previous |
Next
This page created by
Valerie Bradley
Last updated:
|