View Full Version : The Fourth Lesson: How to insert colors in HTML



masternew
6th July 2006, 14:10
Of course you notes what you will learn from the title on the lesson

That is colors and how to insert them as a background or an colored text or as titles of page

First let us learn how to inset the color as a background

You can do that by this tag



<body bgcolor=#ffffff>

-------

-------

</body>


As a background in the previous tag I have used the white color by this symbol ffffff
So you can use the color you like and replace it by the color I choose
But you must remember to put the symbol # before the color symbol you choose
Now you learn how to change the background color what about the text color
See this Tag:

<font color=#123123>

------

------

</font>

And like this choose the color you whish and you will see the result each time use Font color

At the end you have the right to ask me about these symbols from where we get it..,so I promise you that you can found a program to tell you about them in the download center
But for the famous colors like white , back , blue ,green ,yellow you can write their name instead of these symbols.

and in the attached file there is an small program will help in knowing the code of the colors