stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
You've got STYLE! Flashcards | StudBud
Explore
/
You've got STYLE!
What does this tag do?
Why would you use "id" rather than "class"?
You've got STYLE!
21 terms
·
StudBud Administration
·
241 plays
#computerocding #8thgrade #CSS
Flashcards
21 cards
F
Practice quiz
P
Host live
L
Questions
21
Answers
1
Why would you use "id" rather than "class"?
To give an element a unique style
All of these are correct
To single out an element from others like it
To select one element for special treatment
2
What does this tag do?
Links to an external CSS file
Enables inline CSS to work in your document
Links to selectors in a "stylesheet" database
Links to a library called "text/css"
3
Which property/value would give table data elements a 2px-thick dashed blue border?
border: 2px dashed blue;
td-border: 2px dashed blue;
border: 2px-thick dashed blue;
table-border:2pz dashed blue;
4
Why use an "external" CSS file?
To style multiple HTML pages from a single CSS file
To avoid rewriting code
To enable adding HTML to the CSS file
To access more HTML elements
5
Which is true about the `px` unit for font-size?
The px unit appears exactly the same size on every device
The px unit appears relative to screen size
The px and em units should be used interchangeably
The px unit can be used with any selector
6
What is special about the `em` font-size unit? as shown?
Em units will not work on all screen sizes
Em units will style font relative to screen size
Em units are the same as px units
Em units are used for anchor tag selectors only
7
Why are hexidecimal (HEX) values used to assign colors in CSS?
All of these are correct
Millions of color options are available using HEX values.
Named color values (ex: gray) should not be used in CSS.
HEX values are easier for programmers to read.
8
Complete the following sentence: "If HTML were a tree..."
Trunk is <!DOCTYPE html>first branches are <html> and <body>
The trunk is <p>- first branches are <title> and <div>
The trunk is <html> - first branches are <head> and <body>
The trunk is <body>- first branches are <div> and <p>
9
Which CSS selector will select any list item within a div?
* div li
div > li
div * li
div li
10
When should you use a class selector?
To select many elements that should receive the same styling
To select just a single HTML element to style
To select and style all elements in a document
You should never use class selectors in CSS
11
Which CSS rules are "commented out?"
Paragraph rules are commented out
All the rules are commented out
The h1 and paragraph rules are commented out
The h1 elements are commented out
12
What is CSS?
A web browser
Acronym for "colorful style sheets"
A language used to style HTML elements
A markup language used as a substitute for HTML
13
Which selectors in this code sample are siblings?
All of these are correct
The inner p and the ul element
All three list items
The first p and the div
14
To create a square-shaped div, which CSS properties would you change?
Shape and tallness
Width and height
Background and size
Thickness and shape
15
Which CSS would select a class named question?
.question
*question
$question
#question
16
Below, which part of the syntax is called the `selector`?
a
color
None of these
#cc0000
17
Which pseudo-class selects text when the mouse is directly over it?
active
link
visited
hover
18
Which CSS would select an ID named first?
.first
*first
#first
$first
19
Describe the effect of this CSS rule:
Makes all divs of the p class gray and 18px large
Makes all paragraph text gray and 18px large
Makes paragraph text 18px large and background color gray
Makes punctuation marks gray and 18px large
20
How are the p and div related in this code sample?
The p and div are siblings
The div is the parent of the p
None of these are correct
The div is the child of the p
21
Which CSS selector will select only list items that are direct children of a div?
div > ul > li
All of these are correct
div > li
div li