Sign up now
to enroll in courses, follow best educators, interact with the community and track your progress.
Download
Quiz on CSS (in Hindi)
42 plays

More
Basic quiz on CSS.

Jigyasa Agrawal
Hi, I'm Jigyasa Agrawal, Currently pursuing B.Tech in computer engineering at GBPUAT pantnagar.

U
Unacademy user
  1. Quiz (CSS Basics)


  2. Questions 1. What does CSS stand for? Computer Stylesheet Cascading Style Sheet Creative Style Sheet


  3. 2 What is the correct CSS syntax for making all the <span> elements bold? A. B. C. D. span ftext-size:bold) span ffont-weight:bold) <span style="font-size:bold"> <span style="text-size:bold">


  4. 3 What is the correct HTML for referring to an external style sheet? B. C. <style src="mystyle.css"> <link rel="stylesheet" type--"text/css" href="mystyle.css"> <stylesheet>mystyle.css</stylesheet>


  5. 4 The # symbol specifies that the selector is? A. class B. tag C. first D. id


  6. Which of the following would be used to create an ID called header which has a width of 750px, a height of 30px and the color of the text is black? A. B. C. D. #header { height: 30px; width: 750px; color: black; } .header [ height: 30px; width: 750px; colour: black;) #header( height: 30px; width: 750px; text: black; } .header [ height: 30px; width: 750px; color: black; )


  7. 6 Where in an HTML document is the correct place to refer to an external style sheet? A. In the <head> section B. In the <meta> section C. In the <body> section D. In the <style> section


  8. 7 What property is used to change the text color of an element? A. fontcolor: B. textcolor: C. color: D. font-color:


  9. How do you add a comment in a CSS file? A B. C. D. / this is a comment */ //this is a comment // //this is a comment <! this is a comment>


  10. 9 What is the correct CSS syntax to change the font name? A. font-name: B. font: C. font-family: D. fontname:


  11. 13 Which of the following property is used to add or subtract space between the words of a sentence? A color B direction C letter-spacing D -word-spacing


  12. 15 The font-size value can be an absolute, or relative size ??? 1. True 2. False


  13. 16 Which of the following is a component of CSS style rule? A Selector B Property C Value D All of the above.


  14. 17 The for a single, unique element selector is used to specify a style A. Id B. Class C. Text D. Bit


  15. 18 Which of the following statements is TRUE for CSS? A. B. C. D. An external style sheet is ideal when the style is applied to many pages An inline style sheet should be used when a single document has a unique style An external style sheet can be written in HTML. Both and b above


  16. 19 Multiple external style sheets cannot be referenced inside a single HTML document ? 1. True 2. False