CSS Multiple choices


Total available count: 25
Subject - Web Development
Subsubject - CSS

How do you add a background color for all <h1> elements?


 

 

 

 



C


Solution:-

CSS element,element Selector:

Definition and Usage:-

Style <h1> elements using background-color CSS property, if you want to apply for different elements then you will have to separate each element name with a comma and apply the style.

CSS Syntax:-

element, element { css declarations; }

Example:-

Select and style all <h1> elements AND all <p> elements:
h1, p { background-color: Red; }

 




Next 5 multiple choice(s)

1

Which CSS property is used to change the text color of an element?

2

Which CSS property controls the text size?

3

What are the correct CSS syntax for making all the <p> elements bold?

4

How do you display hyperlinks without an underline?

5

How do you make each word in a text start with a capital letter?

Comments