Tip:
Highlight text to annotate it
X
Hi, I'm Dorian Winterfeld, on behalf of Expert Village. I've been doing web programming for
about ten years, and today we are going to cover the basics of HTML. Now I'm going to
show you how to change the color of your text. To make it simple, I'm going to get rid of
these tags, and I'm going to go back to our basic, just plain text just to show you. There:
Hello Expert Village. Let's say we wanted to change the color of our text. Well, we're
going to do it with what's called the font tag. We're going to open the font tag, and
we're going to close the font tag. Notice I'm opening it and closing it just like all
the other tags. Hopefully, you should be getting used to this. Now, we have to add an attribute
of color. Color equals, let's say, red. So, we have our tag, we have the attribute is
color. Color equals red, close tag. We're going to save the document, we're going to
reload, and what do you know? Now it's red. Say you want to make it red, but you also
want to make it bigger. Before, we used the tag called 'big'. Now I'm going to add an
attribute to 'font' called 'size' equals. Now, in this case, I'm going to make the size
equal plus one. Let's reload it; now it's red and its one notch bigger. Let's say I
made it plus ten. Now it should be ten times as big as it was originally. There you go.
So you can see, that with the font tag, you can control the color, the size, and there
are many other attributes to the font tag where you can control all the aspects of your
text. Just to show you, you know we can make this green, save it, reload, and now it's
green. So there you have it.