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...

12th HSC free notes of c++ language theory part 3

  Object oriented programming • Object oriented programming is an approach that provides a way of modularizing programs by creating partitioned memory area for both data and function that can be used as templates for creating copies of such modules on demand . • In object oriented programming the program is designed around the data being operated upon rather than upon the operation themselves. • OOP allows to decompose a problem into a number of entities called object and then build data and function around these entity. • When program is executed the object interact by sending message to one another • Each object contains data and code to manipulate the data . Features of OOP : • Program are divided into number of object. • Data is hidden and cannot be accessed by external function • Object may communicate with each other through function • New data and function can be easily added wherever required. Object : • Object are the basic runtime entity in object oriented sy...

12th HSC free notes of c++ language theory part 4

  What is a constructor ? Why it is called so? “A constructor is a special member function of a class . Its task is to initialize the objects of its class. ” It is special because its name is same as that of the class to which it belongs. The constructor is invoked whenever an object of its associated class is created. It is called constructor because it constructs the values of data members of the class. A constructor can never return any value. Hence ,it is written with no return type ( even void is not written ). Whenever a class contain a constructor like one above , it will be initialized automatically , whenever an object of the class is created. i.e. the declaration – integer int1; This not only creates the object int1 of type integer , also initializes its data members m and n to zero . Give the characteristics of a constructor function .or Syntax rule for writing constructors. The constructor name is always same as the class name . They do not have ret...