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

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

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

Important MCQ and imp programs of html and c++.

  Some important MCQ . Ans. :- a)-i) , b)- i) , c)- iii) , d)- iii)                        Ans. :- a)- ii) , b)- iii) , c) - iii) , d)- ii)                         Ans.:- a)- ii) , b) - i), c) - iii) , d) - ii)                        And. :- a)- iii) , b)- ii) , c)- iii) , d) - iii)                       Ans. :- a) - ii) , b) - i), c)- iii) , d) - iii)                      Some important previous year questions of programming. 1) 2) 3) 4)

Question bank of operating system CS.

  Question Bank Standard:- 12th Subject:- Computer Science (D9) Paper I March 2021 सूचना 1. फक्त शवद्यार्थ्यांना प्रश्नप्रकारांचा सराव करून देण्यासाठीच 2. सदर प्रश्नसंचातील प्रश्न बोर्डाच्या प्रश्नपशिके त येतीलच असे नाही याची नोंद घ्यावी. QUESTION BANK XII COMPUTER SCIENCE (D9) – PAPER I CHAPTER 1 – OPERATING SYSTEM MCQ – 1 Mark Q.No. Question Marking scheme 1. Operating system is a __________ i) hardware ii ) software iii) printer iv) input device 1 mark for correct alternative 2. ‘Open files’ is a system call provided under _________ of operating system. i) Information management ii) Process management iii) Memory management iv) GUI 1 mark for correct alternative 3. Program under execution is known as __________. i) File ii) Information iii) Data iv ) Process 1 mark for correct alternative 4. _______is a service of memory management of operating system. i) Copy a file ii) Suspend a Process iii) Allocate a chunk of memory iv) Open a directory 1 mark for correct alternative...