The Paradox

4: Text formatting

There are actually only a few tags that affect only formatting: TT, I, B, BIG, and SMALL. Since you've reached this far you probably know that you need to surround the text you want affected like <TT>this for 'teletype' or monospaced font</TT>, <I>this for italic font</I>, <B>this for bold font</B>, <BIG>this for a bigger font</BIG>, <SMALL>and this for a smaller font.</SMALL>

Naturally, none of that rendered properly in lynx, because it has one size and one face for its fonts. Netscape did it properly, though. For the most part, you should probably use the logical tags rather than the formatting tags - EM and STRONG, CODE instead of TT, and so on (well, if you're marking code). They'll usually look the same, and with the logical tags, a non-visual browser will know if the font changes are associated with anything important, or if they're just there to look pretty.

And there's one more tag used in formatting - although it doesn't have anything to do with text. That's the horizontal rule, or HR tag. It draws a horizontal line across your screen, like so:

<HR>


There have traditionally been a whole lot of things you could do with the HR tag - adjust the width and thickness, to name a few. That's all handled by stylesheets now, though.

You're probably wondering where the FONT tag is, aren't you? No, it's not in the intermediate or advanced section, because formatting tags like that are no longer a part of the HTML specification. To change fonts, you should use style sheets - this separates the logical markup from the formatting markup, and makes it a lot easier to maintain the pages. I'm covering beginner's style sheets in the intermediate section.

HTML Tutorial index | Beginners Tutorial index
<< Back: Text commands | Next: Hyperlinks >>

The OpenNIC You are using the legacy domain name, paradox.homeip.net, to access this site. This site is also available through the OpenNIC system as www.paradox.null. For more information, please visit The OpenNIC web site. To learn how to configure your computer for OpenDNS, please click here, or see this page to learn how to configure your name server.

This page was last modified Saturday July 06, 2002

Valid HTML 4.01!