Responsive image
Responsive image

CSS Background:

Background color: the background-color property specifies the back ground color of an element.
Example:
Body{background-color:#boc4de}

The background color can be specified by:

  • Name: a color name, like “Red”
  • RGB: a RGB value, like “rgb(255,0,0)”
  • Hex : a hex value, like “#ff0000”

Background Image: The background-image property specifies an image to use as the background of an element.
Example:
Body{background-image:url(‘……  . jpg’)}

CSS Text:

Text color:

The  color property is used to set the color of the text. The color can be specified by:

  • Name
  • RGB
  • Hex

Example:
Body{color:”blue”}
H1{color:#00ff00}
H2{color:rgb(255,0,0)}

Text  alignment:

The text can be centered , or aligned the left or right, or justified .
Example:
H1{ text-align: center}

Text Decoration:

The text-decoration property is used to set or remove decorations from text.
Example:
Font{text-decoration:none}
Font{text-decoration:underline}
p.uppercase{text-transform:uppercase}
p.lowercase{text-transform:lowercase}

In HTML :
<p class=”uppercase”>…………………….</p>
<p class=”lowercase”>……………………</p>



Post Your Comment Here