Top 50+ Solved CSS MCQ Questions Answer

From 16 to 30 of 44

Q. ------stands for -

a. Cascade style sheets

b. Color and style sheets

c. Cascading style sheets

d. None of the above

  • a. Cascade style sheets

Q. Which of the following is the correct syntax for referring the external style sheet?

a. <style src = example.css>

b. <style src = "example.css" >

c. <stylesheet> example.css </stylesheet>

d. <link rel="stylesheet" type="text/css" href="example.css">

  • b. <style src = "example.css" >

Q. The property in CSS used to change the---------of an element is -

a. bgcolor

b. color

c. background-color

d. All of the above

  • c. background-color

Q. The property in CSS used to change the text-----of an element isSol:-

a. bgcolor

b. color

c. background-color

d. All of the above

  • b. color

Q. The CSS property used to control the element's------is -

a. text-style

b. text-size

c. font-size

d. None of the above

  • c. font-size

Q. The HTML attribute used to define the inline------is -

a. style

b. styles

c. class

d. None of the above

  • a. style

Q. The HTML attribute used to define the internal style sheet is ------

a. <style>

b. style

c. <link>

d. <script>

  • b. style

Q. Which of the following CSS property is used to set the background image of anelement?

a. background-attachment

b. background-image

c. background-color

d. None of the above

  • b. background-image

Q. Which of the following is the correct syntax to make the background-color of allparagraph elements to yellow?

a. p {background-color : yellow;}

b. p {background-color : #yellow;}

c. all {background-color : yellow;}

d. all p {background-color : #yellow;}

  • a. p {background-color : yellow;}

Q. Which of the following is the correct syntax to display the hyperlinks without anyunderline?

a. a {text-decoration : underline;}

b. a {decoration : no-underline;}

c. a {text-decoration : none;}

d. None of the above

  • c. a {text-decoration : none;}

Q. Which of the following property is used as the shorthand property for the paddingproperties?

a. padding-left

b. padding-right

c. padding

d. All of the above

  • c. padding

Q. The CSS property used to make the-------is -

a. font-weight : bold

b. weight: bold

c. font: bold

d. style: bold

  • c. font: bold

Q. Are the negative values allowed in padding property?

a. Yes

b. No

c. Can't say

d. May be

  • a. Yes

Q. Which of the following property is used as the shorthand property of marginproperties?

a. margin-left

b. margin-right

c. margin

d. None of the above

  • c. margin

Q. The CSS property used to specify the transparency of an element is

a. opacity

b. filter

c. visibility

d. overlay

  • c. visibility
Subscribe Now

Get All Updates & News