![]() |
Building a better web site ... Questy's, HTML Formatting Text |
|
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> </P><P> </P><P> </P> 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>
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. |
|
|
|
![]() |
Welcome
to the World of Questy |