Unit 3 Pre Test
To add style to an element with an ID, you preface the ID in CSS with which of the following symbols.
#
How do you add a comment to your CSS code?
/* this is a comment */
Which HTML element is used to define an internal sheet?
<style>
Which is a valid reason for assigning an ID attribute to an HTML element?
All of the Above
When the "font family" property has a list of fonts as its value-
All of the above
Which property is used to change the background color in CSS?
Background-color
Which of the following uses correct syntax?
Body {color: black}
Which of the following is the correct declaration for setting the font size of the body element?
Body {font-size: 1em;}
Which of the following is an advantage to using an external style sheet?
Both A and B
Which of the following is techniques would help you text the contrast between text and background?
Capture your screen to an image file, then open in imagine editing software and convert the image to grey-scale.
What does CSS stand for?
Cascading Style Sheets
Which property is used to change the color of text in CSS?
Color
White's hex triplet is?
FFFFFF
Which CSS property is used to change the font of an element?
Font family
ID is to individual elements as class is to
Group of Elements
How do you set the background color for <h1> elements?
H1 {background-color: #FF0000 }
Consider the following CSS
H1,h2,h3 elements will have Rockwell as the first choice
Which CSS property is used to define the spacing between text characters?
Letter-spacing
How do yo change the left margin of an element in CSS?
Margin-left
The border style property can have several values but not..,
Oval
To add to an element with a class, you preface the class in CSS with which symbol?
Period (.)
The Hex triplet is a six digit number, where each pair of digits represents the value of (in order)
Red green blue
The Three Parts is a CSS style are:
Selector, property, and value
Which of the following font family's has small lines or strokes that extend from the ends of characters.
Serif
Which HTML attribute is used to set inline styles for a particular element?
Style
The CSS property for positioning text right or left or center is
Text alignment
How do you make each word start with a capital letter?
Text-transform: capitalize
One of the best ways to differentiate content is to show hierarchy by varying font size. TRUE OR FALSE
True
Which CSS property is used to define the space between words?
Word-spacing
Which CSS property controls the text size?
font size