Want to see correct answers?
Login or join for free!
  printable Worksheets
Looking for printable worksheets?
Check out our pre-made printable worksheets!
Share/Like This Page
Filter By Grade


CSS Questions - All Grades

You can create printable tests and worksheets from these CSS questions! Select one or more questions using the checkboxes above each question. Then click the add selected questions to a test button before moving to another page.

1 2
Continuing Education CSS
What is the correct CSS syntax for making all the <p> elements bold?
  1. p {text-size:bold}
  2. p {font-weight:bold}
  3. <p style="text-size:bold">
  4. <p style="font-size:bold">
Continuing Education CSS
How do you add a background color for all <h1> elements?
  1. h1 {background-color:#FFFFFF}
  2. all.h1 {background-color:#FFFFFF}
  3. h1.all {background-color:#FFFFFF}
Continuing Education CSS
What does CSS stand for?
  1. Cascading Style Sheets
  2. Colorful Style Sheets
  3. Computer Style Sheets
  4. Creative Style Sheets
Continuing Education CSS
Continuing Education CSS
Which property is used to change the background color?
  1. color:
  2. bgcolor:
  3. background-color:
Continuing Education CSS
Where in an HTML document is the correct place to refer to an external style sheet?
  1. In the <body> section
  2. At the end of the document
  3. At the top of the document
  4. In the <head> section
Continuing Education CSS
What is the correct HTML for referring to an external style sheet?
  1. <stylesheet>mystyle.css</stylesheet/>
  2. <style src="mystyle.css"/>
  3. <link rel="stylesheet" type="text/css" href="mystyle.css">
Continuing Education CSS
How do you make the text bold?
  1. style:bold
  2. font-weight:bold
  3. font:b
Continuing Education CSS
How do you change the text color of an element?
  1. text-color:
  2. fgcolor
  3. text-color=
  4. color:
Continuing Education CSS
Continuing Education CSS
Continuing Education CSS
Which is the correct CSS syntax?
  1. body:color=black
  2. {body:color=black(body}
  3. body {color: black}
  4. {body;color:black}
Continuing Education CSS
What is NOT accepted as color code?
  1. #6495ed
  2. #FFF
  3. #FFFFFFA
Continuing Education CSS
Continuing Education CSS
How can you apply the same style for different tags (elements)?
  1. tag1:tag2:tag3{...}
  2. tag1.tag2.tag3{...}
  3. tag1,tag2,tag3{...}
Continuing Education CSS
How do you change the left margin of an element?
  1. margin:
  2. text-indent:
  3. indent:
  4. margin-left:
Continuing Education CSS
How do you insert a comment in a CSS file?
  1. // this is a comment
  2. ' this is a comment
  3. /* this is a comment */
  4. // this is a comment //
Continuing Education CSS
If your styles work on Firefox but not on IE, what should you check?
  1. !DOCTYPE Definition
  2. CSS Standard Type Definition
Continuing Education CSS
Which CSS property controls the text size?
  1. font-style
  2. font-size
  3. text-size
  4. text-style
1 2
You need to have at least 5 reputation to vote a question down. Learn How To Earn Badges.