Page 1 :
CSS MCQ, 1) CSS stands for -, , a., , Cascade style sheets, b. Color and style sheets, c. Cascading style sheets, d. None of the above, , 2) 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">, , 3) The property in CSS used to change the background color of an element is -, , a., , bgcolor, b. color, c. background-color, d. All of the above, , 4) The property in CSS used to change the text color of an element is -, , a., , bgcolor, b. color, c. background-color, d. All of the above, , 5) The CSS property used to control the element's font-size is -, , a., , text-style, b. text-size, c. font-size, d. None of the above
Page 2 :
6) The HTML attribute used to define the inline styles is -, , a., , style, b. styles, c. class, d. None of the above, , 7) The HTML attribute used to define the internal stylesheet is -, , a., , <style>, b. style, c. <link>, d. <script>, , 8) Which of the following CSS property is used to set the background image of an element?, , a., , background-attachment, b. background-image, c. background-color, d. None of the above, , 9) Which of the following is the correct syntax to make the background-color of all paragraph elements, to yellow?, , a., , p {background-color : yellow;}, b. p {background-color : #yellow;}, c. all {background-color : yellow;}, d. all p {background-color : #yellow;}, , 10) Which type of CSS is used in the below code?, , 1. <p style = "border:2px solid red;">, a., , Inline CSS, b. Internal CSS, c. External CSS, d. None of the above