IMG-LOGO
Home Course Font in css

Font in css

by MH RISHAD - 06 Jan 2021
IMG

TEXT FORMATTING

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. 

Text Color

The color property is used to set the color of the text. The color is indicated by:

  • Color - like "Green"
  • HEX value - like "#00FF00 "
  • RGB value - like "rgb (0, 255, 0)"

The default content color for a page is characterized within the body selector.

body {
  color: red;

}

h1 
{
  color: yellow;

}

 

Font Color and Background Color

In this illustration, we characterize both the background-color property and the color property:

Example:

body {
  background-color: lightgreen;

  color: red;

}

h1 {
  background-color: yellow;

  color: black;

}

Share:

Leave a Comment

Required fields are marked *