Logo Your Web Hosting Solution
Line
HTML Guide
Introduction
Documents
Formatting
Links
Images
Lists
Tables
Forms
Tutorials Index
Home Page
HTML Tutorial - Formatting

Many different tags are available to control text on a web page. Some of the more basic are listed here.

1. Add a line break

The BR tag is used to add a line break to a html document. Simply pressing enter will not work.

Simply pressing enter
will not result in a line break.
This <BR> tag will.

The above lines of html produces the below result.

Simply pressing enter will not result in a line break. This
tag will.

No new line was started after the word 'enter'. The line break was added where the BR html tag was placed.

2. New paragraph

The P html tag is used to insert a new paragraph.

Simply pressing enter a few times

will not insert a new paragraph.
This <P> tag will.

The above lines of html produces the below result.

Simply pressing enter a few times will not insert a new paragraph. This

tag will.

3. Bold text

The B tag is used to start/stop this formatting style.

This is an <B>example</B> of bold text.

The above line of html code produces the below result.

This is an example of bold text.

4. Italicized text

The I tag is used to start/stop this formatting style.

This is an <I>example</I> of italicized text.

The above line of html produces the below result.

This is an example of italicized text.

3. The FONT tag

The FONT tag has various attributes which can be used to change the font properties in html documents.

This tag can be used to change <FONT COLOR="red">color</FONT>, <BR>
<FONT SIZE="+1">size</FONT> and also <FONT FACE="sans-serif"> font face</FONT>.

The above lines of html produces the below result.

This tag can be used to change color,
size and also font face.

The COLOR attribute is used to change the color. The SIZE attribute can increase and decrease size. The FACE attribute defines the font face in html documents.

4. Advanced Usage

Formatting tags can be combined to help make html documents easy to read. Many other formatting tags exist, only a few are covered in this beginner's guide.

Top Of Page 
Line
Copyright© 1996 - 2024 Clockwatchers, Inc.