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.
Text formatting in HTML
- Introduction
- Bold, Italic & Underline
- Changing Font Styles
- Alignment and Spacing
Changing Font Styles
You might also like...
About the author
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 ...
Interested in writing for us? Find out more.
HTML books
-
Teach Yourself VISUALLY Web Design (Teach Yourself VISUALLY (Tech)
The mechanics of Web design made easy for visual learnersAn effective Web site combines good graphic design principles with a functional user interface. This colorful, step-by-step guide shows visual learners how to plan, develop, and publish a site,...
HTML podcasts
-
Hanselminutes: PhoneGap/Cordova - Is HTML a reasonable app solution? With Steve Sanderson
Published 7 years ago, running time 0h32m
Steve Sanderson schools Scott on PhoneGap/Cordova. We explore the concepts and ask: is HTML a reasonable app solution? What kinds of apps lend themselves to HTML and JavaScript? What backend services are needed to support these apps?
Comments