NEW
Font size
WorksheetsIntroduction to CSS
Total questions: 15
Worksheet time: 4mins
Which rule will change the font of the text?
font-size
text-align
font-family
text-decoration
Which rule is used to change the size of text?
font-size:12px;
font-height:12px;
text-size:12px;
size:12px;
Which type of CSS is placed directly within the HTML tags?
Internal
Inline
External
Included
What is wrong with the CSS applied below?
It should say style:colour=red
It should say style="color:red;"
It should say "style=color:red;"
It should say style="font-color:red;"
What term describes one specific feature such as size or color?
Property
Declaration Block
selector
Value
What symbol indicates that numeric values will be hexadecimal instead of decimal?
*
@
#
!
Which of the following lines of code will correctly set the color of text inside a <h2> element to blue, when found in an external CSS file?
h2 {color: blue;}
h2 {text-color:blue;}
style="h2:color,blue;"
h2 text-color:blue
What special element will tell the browser the location of the CSS file?
<css>
<link>
<style>
<script>
What is true about the format of a declaration block found inside a <style> element instead of inline?
The format is the same as inline, but you might add some white-space to put each declaration on a different line.
You do not need to separate declarations with semi-colons at the end.
You can use an equals sign (-) between the property and value
All of the above are true
What does this code do?
<style type="text/css">p{color: blue;}</style>
creates blue text anywhere "text/css" appears on the web page
makes every "p" text character on the web page blue
creates a web page with a blue background
defines a blue color for text inside a paragraph element
How do you create an inline style?
Define a style rule in your < head > area
Add a list of property attributes to the target element
Add a “style” attribute to the target element
Add a “css” attribute to the target element
Which of the following is correct about CSS?
CSS is used to control the style of a web document in a simple and easy way.
CSS is the acronym for "Cascading Style Sheet".
You can write CSS once and then reuse same sheet in multiple HTML pages.
All of the above.
Which of the following is a component of CSS style rule?
selector
property
value
all of the choices
Which of the following property is used to set the color of a text?
Color
text-color
text-decoration
text-format
What is the correct CSS syntax for making all the <p> tag's font size 14px?
p{14px}
p{font-size:14px;}
p{text-size:14px;}
p{size:14px;}
