![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Text formatting is the most important thing you can do with HTML. It allows you to determine what your document will look like. For example, you can specify things like paragraphs, line spacing, and horizontal rules.
The first command that we will go over here is the Paragraph Mark. The <P> will put a blank line between anything before it in the document and anything after it in the document. Notice that the paragraph does not indent.
If you simply want a line break, or return, without a blank line separating the two lines of text, you will find that using <br> is useful. This will force the text after it to be on a separate line from the text before it.
You can also make a solid Horizontal Line to divide sections of the text. To do this you use the <hr>. This will create a thin line to separate your document into sections.
Inside the <hr> tag you may set the variables, Size (thickness) and Width (the percentage of the window coverd by the rule).
Example:
<html>
<title>Testing Page Format</title>
<h1>Testing Page Format</h1>
This is an example of the use of a paragraph mark.
<p>
This is a line that has a line break instead.
<br>
This is what a horizontal rule will do..
<hr>
</html>
A Formatted Version of this Text
With page formats you can also use a variety of lists to keep your information organized.
![]()
The National Center for Supercomputing Applications
University of Illinois at Urbana-Champaign
[email protected]
Last modified: June 19, 1997