Share/Like This Page


CSS Questions - All Grades

Create printable tests and worksheets from CSS questions. Select questions to add to a test using the checkbox above each question. Remember to click the add selected questions to a test button before moving to another page.

The CSS questions below are in the following grade levels: Continuing Education
1 2
Continuing Education :: CSS by yasserhy
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 by yasserhy
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 by yasserhy
Continuing Education :: CSS by yasserhy
Which property is used to change the background color?
  1. color:
  2. bgcolor:
  3. background-color:
Continuing Education :: CSS by yasserhy
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 by yasserhy
How do you make the text bold?
  1. style:bold
  2. font-weight:bold
  3. font:b
Continuing Education :: CSS by yasserhy
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 by yasserhy
What is NOT accepted as color code?
  1. #6495ed
  2. #FFF
  3. #FFFFFFA
Continuing Education :: CSS by yasserhy
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 by yasserhy
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 by yasserhy
Continuing Education :: CSS by yasserhy
How do you change the left margin of an element?
  1. margin:
  2. text-indent:
  3. indent:
  4. margin-left:
Continuing Education :: CSS by yasserhy
What does CSS stand for?
  1. Cascading Style Sheets
  2. Colorful Style Sheets
  3. Computer Style Sheets
  4. Creative Style Sheets
Continuing Education :: CSS by yasserhy
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 by yasserhy
Continuing Education :: CSS by yasserhy
Continuing Education :: CSS by yasserhy
How do you make a list that lists its items with squares?
  1. type: 2
  2. list-style-type: square
  3. type: square
  4. list-type: square
1 2
You need to have at least 5 reputation to vote a question down. Learn How To Earn Badges.