Skip to main content

12th HSC for 2020 and 2021 batch CS HTML colors . Part 2

 HTML COLORS

• Colors are very important to give a good look and feel to your website.

• HTML Color Coding Methods:

• There are following three different methods to set colors in your web 

page −

• Color names − You can specify color names directly like green, blue 

or red.

• Hex codes − A six-digit code representing the amount of red, green, 

and blue that makes up the color..

• Color decimal or percentage values − This value is specified using 

the rgb( ) property.


HERE ARE THE EXAMPLES TO SET BACKGROUND

OF AN HTML TAG BY COLOR NAME

<html>

<head>

<title></title>

</head>

<body bgcolor=“ red”>

</body>

</html>


HTML COLORS - HEX CODES

• A hexadecimal is a 6 digit representation of a color.

• The first two digits(RR) represent a red value, the next two are a green value(GG), and 

the last are the blue value(BB).

• Each hexadecimal code will be preceded by a pound or hash sign #. Following is a list of 

few colors using hexadecimal notation

• #000000 -→ black color.

• #FF0000→red

• #00FF00→green

• #0000FF→blue



RGB COLOR CODING IN HTML

• An RGB color values is specified with rgb(red, green, blue ).

• Each parameter define the intensity of color 

• The intensity of color vary from 0 to 255.

• For example : rgb(0 , 0 , 255) → blue color.

• <style>

div{ 

Color: rgb( 0, 191, 255);

</style>.

Comments

Popular posts from this blog

12th topicfor 2020 and 2021 batch HTML table part 3 free notes

  Html Table  ✓ A table can be created using <table></table> ✓ A table consists of rows and column  ✓ The row is to be define 1 st and then cells or column inserted into row  from left to right . ✓ For creating row <tr></tr> tag is used ✓ For table data <td> </td>tag is used ✓ For table heading i.e. row heading <th></th> tag is used. Basic table structure <table> <tr> <td>cs academy </td> <td>html</td> </tr> <tr> <td>.data structure</td> <td>operating system</td> </tr> </table> Important tags  ▪ <img src=“ ”> : use to add images on our web page. ▪ <a href=“ ”> use for hypertext link , called as anchor tag.. ▪ <sup></sup>. :use to show text in super script for 1st ▪ <sub></sub> : use to show text in subscript form. ▪ <strike></strike> : text have line drawn throught the middle ...

Free notes Operating system 12th HSC windows 98

  MAIN FEATURES OF WINDOWS 98 ➢Easier to use : ➢Windows 98 is a single user multitasking operating system  ➢Searching is easy in this os. ➢A file can be opened by a single click ➢It allows us to use multiple monitor with single computer ➢New hardware can be easily installed. MAIN FEATURES  Faster : • Windows and program open faster than in windows 95 • The computer speed and efficiency can be easily improved by single maintainance. True web integration : • It can be easily connected to internet • Web pages can be viewed in any window • Internet conferances can be arranged

Free notes of all naming reactions .(handwritten notes jee, neet, mht-cet)

All naming reactions  (Handwritten notes.)                   organic chemistry naming reactions.