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
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
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
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
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
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
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
How do you change the text color of an element?
  1. text-color:
  2. fgcolor
  3. text-color=
  4. color:
Continuing Education :: CSS by yasserhy
How to allow an element to override a style that was defined in a CSS file?
  1. Use the "style" attribute of that element
  2. Use class="none"
  3. Use parentcss = "none"
Continuing Education :: CSS by yasserhy
How do you make each word in a text start with a capital letter?
  1. text-transform:capitalize
  2. You can't do that with CSS
  3. text-transform:uppercase
Continuing Education :: CSS by yasserhy
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 by yasserhy
Which CSS property controls the text size?
  1. font-style
  2. font-size
  3. text-size
  4. text-style
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
How do you display hyperlinks without an underline?
  1. a {text-decoration:none}
  2. a {text-decoration:no underline}
  3. a {decoration:no underline}
  4. a {underline:none}
Continuing Education :: CSS by yasserhy
What is NOT accepted as color code?
  1. #6495ed
  2. #FFF
  3. #FFFFFFA
1 2
You need to have at least 5 reputation to vote a question down. Learn How To Earn Badges.