Basic Units of CSS

Specify the Basic Units of the CSS.

E

Expert

Verified

The basic unit of CSS includes a definition of style property for a selected HTML tag written within the following syntax:

html_tag_name {style_property_name: style_property_value}

For example:

/* set background color to black for the <BODY> tag */

BODY {background-color: black}

/* set font size to 16pt for the <H1> tag */

H1 {font-size: 16pt}

/* set left margin to 0.5 inch for the <BLOCKQUOTE> tag */

BLOCKQUOTE {margin-left: 0.5in}

   Related Questions in Programming Languages

©TutorsGlobe All rights reserved 2022-2023.