1 - The main HTML formatting tags for a text

HTML has many tags to act on the formatting of a text, we will quote here only the most used tags:



What displays to the browser : 

2 - Practical use of formatting tags HTML


To write the following text:   
"The HTML language is very easy!"
we use the code :

3 - Color codes in HTML

We saw in the preceding paragraphs that colors can be designated by their names like red, green, blue ... But the problem is that of the intensity of a color! for example, we say blue color, it can be a sky blue, dark blue, navy blue color! It is for this reason that computer scientists have decided to code the colors.
The format of the color control is:   "#RRVVBB":
RR   :   the amount of red contained in the color.
VV   :   the amount of green contained in the color.
BB   :   the amount of blue contained in the color.


The color    :   # 000000    corresponds to the black  color (00 of red, 00 of green and 00 of blue).
The color   :   #FFFFFF   corresponds to the white  color  (the FF digit is the maximum possible)
The hexadecimal numbering sequence is (from min to max)  :  0 1 2 3 4 5 6 7 8 9 A B C D E F.

Younes Derfoufi 

Leave a Reply