This quiz has 12 multiple-choice questions. Only one answer is correct for all questions.
CSS Basics Quiz
- CSS is used for __ .
- describing the structure of Web pages
- describing the presentation of Web pages
- making Web Pages interactive
- sending data to the server
ans: 2
- Which is a valid property for changing text color?
- font-color
- color
- text-color
- None of the above
ans: 2
- CSS is a ___.
- Programming Language
- Scripting Language
- Markup Language
- Stylesheet Language
ans: 4
- Which tag is used to link external stylesheets?
- <link>
- <a>
- <style>
- <meta>
ans: 1
- Which ruleset will be applied to all HTML elements?
- body { color: blue;}
- * { color: blue;}
- div { color: blue;}
- .container { color: blue;}
ans: 2
- Which tag is used to define internal stylesheet ?
- <link>
- <a>
- <style>
- <meta>
ans: 3
- Which CSS property is used to change text size ?
- font-size
- text-size
- font-family
- None of the above
ans: 1
- Which attribute is used to define inline styles?
- styles
- font
- style
- target
ans: 3
- Which is a valid CSS Declaration?
- color = 'blue'
- color : blue
- 'color' : 'blue'
- 'color' = 'blue'
ans: 2
- External Stylesheets are defined in file with ____ extension.
- .css
- .js
- .design
- None of the above
ans: 1
- Which attribute value should be unique in the whole document to avoid unpredictable behavior?
- id
- class
- style
- data-*
ans: 1
- How a comment is written in CSS?
- ~ This is a valid comment ~
- # This is a valid comment
- // This is a valid comment
- /* This is a valid comment */
ans: 4