KnowledgeBoat Logo
|

Computer Applications

CSS is widely used by web developers. Write any four property values of CSS.

CSS

3 Likes

Answer

Four property values of CSS are as follows:

  1. color — It sets the color of a text.
    For example, P {Color : red; }
  2. background-color — It sets the background color for HTML document.
    For example, Body {background-color : blue; }
  3. border-style — This property sets the style of an element border. This property can have from one to four values.
    For example, P {border-style : solid; }
  4. margin — CSS has properties for specifying the margin for each side of an element; margin-top, margin-right, margin-bottom, margin-left.
    For example, P {margin-top : 40px; }

Answered By

2 Likes


Related Questions