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.

You might also like...

Comments

About the author

Jamie Lindgren United States

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 ...

Interested in writing for us? Find out more.

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“We better hurry up and start coding, there are going to be a lot of bugs to fix.”