Test Your Knowledge - CSS Basics Quiz

css.Srijan

This quiz has 12 multiple-choice questions. Only one answer is correct for all questions.


  1. CSS is used for __ .
    a. describing the structure of Web pages
    b. describing the presentation of Web pages
    c. making Web Pages interactive
    d. sending data to the server

b. describing the presentation of Web pages


  1. Which is a valid property for changing text color?
    a. font-color
    b. color
    c. text-color
    d. None of the above

b. color


  1. CSS is a ___.
    a. Programming Language
    b. Scripting Language
    c. Markup Language
    d. Stylesheet Language

d. Stylesheet Language


  1. Which tag is used to link external stylesheets?
    a. <link>
    b. <a>
    c. <style>
    d. <meta>

a. <link>


  1. Which ruleset will be applied to all HTML elements?
    a. body { color: blue;}
    b. * { color: blue;}
    c. div { color: blue;}
    d. .container { color: blue;}

b. * { color: blue;}


  1. Which tag is used to define internal stylesheet ?
    a. <link>
    b. <a>
    c. <style>
    d. <meta>

c. <style>


  1. Which CSS property is used to change text size ?
    a. font-size
    b. text-size
    c. font-family
    d. None of the above

a. font-size


  1. Which attribute is used to define inline styles?
    a. styles
    b. font
    c. style
    d. target

c. style


  1. Which is a valid CSS Declaration?
    a. color = 'blue'
    b. color : blue
    c. 'color' : 'blue'
    d. 'color' = 'blue'

b. color : blue


  1. External Stylesheets are defined in file with ____ extension.
    a. .css
    b. .js
    c. .design
    d. None of the above

a. .css


  1. Which attribute value should be unique in the whole document to avoid unpredictable behavior?
    a. id
    b. class
    c. style
    d. data-*

a. id


  1. How a comment is written in CSS?
    a. ~ This is a valid comment ~
    b. # This is a valid comment
    c. // This is a valid comment
    d. /* This is a valid comment */

d. /* This is a valid comment */


Share and support us

Share on social media and help us reach more people