| What does CSS stand for? | 1 | multiple | Cascading Style Sheets | Creative Style Sheets
Computer Style Sheets
Cascading Style Sheets
Colorful Style Sheets
| CSS |
| What is the correct HTML for referring to an external style sheet? | 1 | multiple | <link rel="stylesheet" type="text/css" href="mystyle.css"> | <style src="mystyle.css">
<stylesheet>mystyle.css</stylesheet>
<link rel="stylesheet" type="text/css" href="mystyle.css">
| CSS |
| Where in an HTML document is the correct place to refer to an external style sheet? | 1 | multiple | In the <head> section | At the end of the document
In the <body> section
In the <head> section
| CSS |
| Which HTML tag is used to define an internal style sheet? | 1 | multiple | <style> | | CSS |
| Which HTML attribute is used to define inline styles? | 1 | multiple | style | | CSS |
| Which is the correct CSS syntax? | 1 | multiple | body {color: black;} | body:color=black;
{body:color=black;}
body {color: black;}
{body;color:black;}
| CSS |
| How do you insert a comment in a CSS file? | 1 | multiple | /* this is a comment */ | /* this is a comment */
// this is a comment //
// this is a comment
' this is a comment
| CSS |
| Which property is used to change the background color? | 1 | multiple | background-color | background-color
bgcolor
color
| CSS |
| How do you add a background color for all <h1> elements? | 1 | multiple | h1 {background-color:#FFFFFF;} | h1 {background-color:#FFFFFF;}
h1.all {background-color:#FFFFFF;}
all.h1 {background-color:#FFFFFF;}
| CSS |
| Which CSS property is used to change the text color of an element? | 1 | multiple | color | | CSS |
| Which CSS property controls the text size? | 1 | multiple | font-size | text-style
font-style
text-size
font-size
| CSS |
| What is the correct CSS syntax for making all the <p> elements bold? | 1 | multiple | p {font-weight:bold;} | <p style="text-size:bold;">
<p style="font-size:bold;">
p {font-weight:bold;}
p {text-size:bold;}
| CSS |
| How do you display hyperlinks without an underline? | 1 | multiple | a {text-decoration:none;} | a {underline:none;}
a {text-decoration:no-underline;}
a {decoration:no-underline;}
a {text-decoration:none;}
| CSS |
| How do you make each word in a text start with a capital letter? | 1 | multiple | text-transform:capitalize | transform:capitalize
text-style:capitalize
You can't do that with CSS
text-transform:capitalize
| CSS |
| Which property is used to change the font of an element? | 1 | multiple | font-family | font-weight
font-style
font-family
| CSS |
| How do you make the text bold? | 1 | multiple | font-weight:bold; | font:bold;
style:bold;
font-weight:bold;
| CSS |
| How do you display a border like this: The top border = 10 pixels The bottom border = 5 pixels The left border = 20 pixels The right border = 1pixel? | 1 | multiple | border-width:10px 1px 5px 20px; | border-width:10px 20px 5px 1px;
border-width:10px 5px 20px 1px;
border-width:10px 1px 5px 20px;
border-width:5px 20px 10px 1px;
| CSS |
| Which property is used to change the left margin of an element? | 1 | multiple | margin-left | margin-left
padding-left
indent
| CSS |
| When using the padding property; are you allowed to use negative values? | 1 | multiple | No | | CSS |
| How do you make a list that lists its items with squares? | 1 | multiple | list-style-type: square; | list-style-type: square;
list: square;
list-type: square;
| CSS |
| How do you select an element with id 'demo'? | 1 | multiple | #demo | | CSS |
| How do you select elements with class name 'test'? | 1 | multiple | .test | | CSS |
| How do you select all p elements inside a div element? | 1 | multiple | div p | | CSS |
| How do you group selectors? | 1 | multiple | Separate each selector with a comma | Separate each selector with a space
Separate each selector with a comma
Separate each selector with a plus sign
| CSS |
| What is the default value of the position property? | 1 | multiple | static | static
absolute
relative
fixed
| CSS |