Part 3 - Formatting your Text - Page 2


© Tracy Ryan
Page 2
<H6>Text</H6>
Looks like this.

The last type of text formatting we’ll cover in this article is preformatted text. “What exactly is preformatted text?” You might ask… I’ll see if I can explain it as simply as possible.

In general, when you’re writing the HTML for your page, there’s certain tags you will use to space things out on your page. That is how you have to control the formatting. You can’t, for example, use six spaces or a tab to space words in your sentence, as browsers won’t recognise tabbing, and they will only read the first space and ignore any subsequent ones. EXCEPT if they lie between tags that specify ‘preformatted text’.

The tags that you use for this are <PRE> with the closing </PRE> (as always). All text that lies between those two tags, including all spaces, tabs, carriage returns, and so on, will be recognised “as is” and will show up on the page that way.

Try the following two sets of HTML code to see how it works…

<HTML>
<HEAD>
<TITLE>Preformatted Text Experiment</TITLE>
</HEAD>
<BODY>

Here is some text
That I’m going to type on the page
I’m going to space it out randomly.

<PRE>

And now I’m going
To do the same thing
Again but between preformatted text tags.

</PRE>
</BODY>
</HTML>

So you can now use formatting tags to change the text appearance on your page. Next article will cover fonts and their use on your web page. There’s a little more to it than you may expect.

Go To Page: 1 2


The copyright of the article Part 3 - Formatting your Text - Page 2 in Website Creation is owned by Tracy Ryan. Permission to republish Part 3 - Formatting your Text - Page 2 in print or online must be granted by the author in writing.

Post this Article to facebook Add this Article to del.icio.us! Digg this Article furl this Article Add this Article to Reddit Add this Article to Technorati Add this Article to Newsvine Add this Article to Windows Live Add this Article to Yahoo Add this Article to StumbleUpon Add this Article to BlinkLists Add this Article to Spurl Add this Article to Google Add this Article to Ask Add this Article to Squidoo


Here's the follow-up discussion on this article: View all related messages

1.   Dec 17, 2001 5:36 PM
Count with me Tracy....this is the third one I am printing...Brenda

-- posted by beekay





For a complete listing of article comments, questions, and other discussions related to Tracy Ryan's Website Creation topic, please visit the Discussions page.