Library tutorials & articles

Text formatting in HTML

Changing Font Styles

Notice how I'm making my tags stand out by making them blue? Well, you can do that too. And I'll tell you lots of other helpful stuff too, like how to change the size and font of your text.

To make your text colored, you use the &ltfont> tag. The font tag is a little unusual. It has what I assume is a varaible (I'm no HTML expert though) right after it. This is because the font tag is used for multiple opeations. For example, for colored text, you'd use &ltfont color=color> to open the tag (replace color with a color... red, green, blue, yellow... several work, but not all. You can also use HEX codes for your colors but I won't bother explaining that.) and <font> to close it. However, if you were going to change the font of your text, you'd use &ltfont face=fontname> (replace fontname with a font, for example Tahoma), and again, <font> to close it. What if you were going to change the size of your text? You'd use &ltfont size=size>. The size is a little funny. It doesn't use the default point sizes that your computer uses. For example, 10 point is pretty small, but if you used a tag like &ltfont size=10>, the text would be HUGE! So, what if you want to make your font smaller? You'd use something like &ltfont size=-1>. Oh, by the way, the closing tag is the same as when you change the color or font.

Comments

  1. 01 Jan 1999 at 00:00

    This thread is for discussions of Text formatting in HTML.

Leave a comment

Sign in or Join us (it's free).

Jamie Lindgren Uhm... I dunno why I'm typing this, cuz nobody is gonna read it probably, but anyway... I am (guess my age!! haha... 14) years old and I like programming, web design, and graphic design. I'm pursui...

Related discussion

Related podcasts

  • Top Web Design Mistakes

    Pete LePage is Product Manager of Internet Explorer Developer Division and he doesn’t want your web site to stink. Sharing from his talk given at TechEd 2008, Pete highlights 10 common web design mistakes and tells you how you can bypass the same blunders. Pete also tells us how future features o...

We'd love to hear what you think! Submit ideas or give us feedback