Recent

6/recent/ticker-posts

CSS 6

CSS 6




Css Elements and Properties

Color 
It is used to describe the Color of the Element.

Tag: Name {color: Value ;}

Example ↓↓↓↓

Html

<html>
<head>
<title>MY PAGE </title>
</head>
<body>
<p> This is a sample para</p>
</body>
</html>

Css

p{

color: blue;

}

Another Css

body{

color: blue;

}








Background Color
The background color is used to describe the background color.

Tag: Name {background color: Value ;}

Example ↓↓↓↓

Html

<html>
<head>
<title>MY PAGE </title>
</head>
<body>
<p> This is a sample para</p>
</body>
</html>

 Css

body{

background color: yellow;

}







Background Image
It is used to insert Background Image.

Tag: Name {background image: Value ;}

Html

<html>
<head>
<title>MY PAGE </title>
</head>
<body>
<p> This is a sample para</p>
</body>
</html>

Css

body{

background image: url("sample.jpg");

}


Background Property

The Background is shorthand for all the Background Properties.

Tag: background : color image;

Example↓↓↓↓

<html>
<head>
<title>MY PAGE </title>
</head>
<body>
<p> This is a sample para</p>
</body>
</html>

Css

body {

 background: blue url(chrysanthemum.jpg);

}


p {
   
 background: url(chrysanthemum.jpg);

}


p {
   
 background: blue;
}











Post a Comment

0 Comments