Questy's Learning Area, tutorials and lessons

Building a better web site ...

Questy's, HTML Formatting Text

Green & Purple line, Questy's Colors!

Paragraphs

Unlike documents in most word processors, carriage returns in HTML files aren't significant. So you don't have to worry about how long your lines of text are (better to have them fewer than 72 characters long though). Word wrapping can occur at any point in your source file, and multiple spaces are collapsed into a single space by your browser.

A Web browser starts a new paragraph only when it encounters a <P> tag. To preserve readability in HTML files, put headings on separate lines, use a blank line or two where it helps identify the start of a new section, and separate paragraphs with blank lines (in addition to the <P> tags). These extra spaces will help you when you edit your files (but your browser will ignore the extra spaces because it has its own set of rules on spacing that do not depend on the spaces you put in your source file).

Browsers ignore multiple <P> tags when there is no text between them. For instance <P><P><P> entered in an HTML document would not produce 3 empty lines. To produce 3 empty lines you would need to use <P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P>
The &nbsp;is a special character, a nonbreaking space, that produces a single blank character.

The break tag <br> forces a new line to be started without an extra blank line.

HTML has numerous tags for formatting text:

Physical Styles (author specifies text appearance)

Bold <B></B>
Italic <I></I>
Subscript <SUB></SUB>
Superscript <SUP></SUP>
Typewriter <TT></TT> (displays in a monospaced font)
Center <CENTER></CENTER> (for both text and images)
Font <FONT></FONT>

Tags can have ATTRIBUTES. A tag can have many attributes, for instance in the example below the font tag has 3 attributes: <font face="Arial" size="-1" color="#009900">

You can choose more than one font, and separate them with a comma. If a browser cannot display the first font listed, it moves on to the next.
The size attribute is a number from 1 to 7, +1 to +4, and -1 to -4
Color are described later in this course. The value is a hexadecimal number which defines a color.

turn the page...Next Page

Welcome to Questy's World

Welcome to the World of Questy

Welcome to the World of Questy -- The World of Questy Sites are currrently undergoing a major overhaul. Stay tuned for updated links and news in 2008!

Unless otherwise credited all photos and graphics are the copyrighted property of Questy aka Tom Peracchio. Unauthorized reproduction of any of the pages of this web site is illegal, not to mention rude.
- Copyright 1990 through 2008 -