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

partitioning (operatimg system ).

 WHAT IS PARTITIONING ? Certain operating system use partitioned memory management to allow multiprogramming . • Partitioning means dividing main memory into various sections.  • These section are called as partitions.  • There are two types of partitions: 1) fixed partition .    2) variable partition.   Fixed partition  .  • In this method partitions are fixed at the time of system generation . At this time , system manager has to declear partition time.  • Fixed partition are also called static partition . On declearing fixed partition , the operating system create partition description table.  • It reduces the uses the CPU utiliisation .  • It reduces the degree of multiprogramming. .    variable partition .     In variable partition number of partition and their size are variable  • They are not defined at the time of system generation .  • These partition are created by operating systems...

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)

Free notes of the operating system some imp questions

 1. ALU  2. STACK POINTER 3. PROGRAM COUNTER 4. INSTRUCTION REGISTER AND DECODER ALU ( ARITHMATIC AND LOGIC UNIT ) It is 8 bit unit  In this arithmetic and logical operation are carried out . ALU contain the binary adder to perform addition substracion by 2’s complement method Data is supplied by memory devices and input ouput devices The result is typically stored in the accumulator. STACK POINTER:- Stack poiointer is a 16 bit register which contain the address of top of stack With the help of incrementer and decrementer stack pointer perform their work The stack pointer is incremented when data is push  The stack pointer is decrementd when data is pop. INSTRUCTION REGISTER AND DECODER :- During the instruction fetch, the first 8 bit of instruction is transfer to the 8 bit instruction register The content of instruction register are available to the instruction decoder The output of decoder get by timing signals, ALU & data buffer. PROGRAM COUNTER:- Program coun...