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 next page
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
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
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
Which property is used to change the background color?
  1. color:
  2. bgcolor:
  3. background-color:
Continuing Education :: CSS by yasserhy
How do set the minimum height to 100px for a structural element?
  1. height: 100px min;
  2. min-height: 100px;
Continuing Education :: CSS by yasserhy
Which HTML tag is used to define an internal style sheet?
  1. <css>
  2. <script>
  3. <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 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
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
With table borders, what is the property used to control the appearance if two borders come across each other?
  1. table-border-across
  2. border-collapse
  3. table-collapse
  4. border-across
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
What is NOT accepted as color code?
  1. #6495ed
  2. #FFF
  3. #FFFFFFA
Continuing Education :: CSS by yasserhy
Which HTML attribute is used to define inline styles?
  1. style
  2. class
  3. styles
  4. font
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 define a style for an element with a specific ID?
  1. .IDName
  2. #IDName
  3. Element.IDName
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
1 2 next page
You need to have at least 5 reputation to vote a question down. Learn How To Earn Badges.