Question: A CSS rule selects specific HTML elements and specifies styling properties for the element. Styling can occur within style tags in the HTML file's header
A CSS rule selects specific HTML elements and specifies styling properties for the element. Styling can occur within style tags in the HTML file's header part. Each style rule indicates the element to be styled like hheader or p paragraph followed by a list in braces of property:value items like color:blue.
Properties Purpose Example CSS
backgroundcolor Element's background color
h
backgroundcolor: lightgray;
fontfamily Font used for the element's text.
p
fontfamily: arial;
fontsize Font size used for the element's text.
p
fontsize: pt;
padding Spacing between element's content and border.
strong
padding: px;
margin Spacing around element outside element's border
p
marginleft: px;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
