Library tutorials & articles
Text formatting in HTML
- Introduction
- Bold, Italic & Underline
- Changing Font Styles
- Alignment and Spacing
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 <font> 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 <font 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 <font 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
<font 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 <font size=10>,
the text would be HUGE! So, what if you want to make your
font smaller? You'd use something like <font size=-1>.
Oh, by the way, the closing tag is the same as when you change the color or font.
Related articles
Related discussion
-
$200 Website Design and Development
by manypeopledesign (1 replies)
-
Dallas Interactive Marketing & Internet SEO SEM October Meetup
by dsafmx (4 replies)
-
Can I design web site by using ASP.net
by pradeepfusion (1 replies)
-
Online Freelance Jobs for Programmers
by getafreelancer02 (0 replies)
-
Inserting checkbox values into one field
by ramsenthil2000 (1 replies)
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...
This thread is for discussions of Text formatting in HTML.