CSS - CSS Background - CSS Background Color




 CSS Background Color

Learn css - css tutorial - CSS Background Color - css examples - css programs

CSS Background color - Definition and Usage

  • In css background color is to apply the background color of an element.
  • Background color can be applied in different ways:
    • Valid color name like "red"
    • HEX value like "#ff0000"
    • RGB value like "rgb(255,0,0)"
CSS background color
  • Background Color is used to set the background color of an element like <p>, <h1>, <h2> and so on.

Sample coding - css html

Tryit<html>
<head>
  <body>
    <p style="background-color: green;"> 
    Wikitechy Is the Best E-Learning Website.
    </p>
  </body>
</head>
</html>
click below button to copy the code. By - css tutorial - team

Code Explanation - style css

background color html
  1. Here “background-color: green;” is used to set green background color for the paragraph.

Code Output - css online

html background
  1. Opening the html file, the web browser displays the paragraph “Wikitechy Is The Best E-Learning Website.” with its background as green color.

This page provides a detailed information on css stylesheet , css editor , css generator , css form , css3 tutorial , tutorial css , php css , css tools , html and css , css tags , css basics , css properties , css software , css layout , code css , css tutorial pdf , css version , online css editor , css online , css examples , compress css.


View More Quick Examples

CSS BASICS & SELECTORS CSS SELECTOR ATTRIBUTE CSS STYLE FORMS COLORS & BACKGROUND CSS MARGIN & PADDING CSS WIDTH & HEIGHT CSS LINKS CSS BLOCKS

Related Searches to CSS - Background Color

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×