NEW
Font size
WorksheetsIDs and Classes
Total questions: 10
Worksheet time: 5mins
The keyboard key to select the browser's address bar
F1
F6
F12
F8
An element having the ID attribute of "green"
cannot be used since "green" is not a valid ID name
can be used only once in an HTML page
can be used more than once in an HTML page
will cause the element to have a background-color of green
The CSS symbol for a class is
a period
an octathorpe
#
a comma
The CSS symbol for an ID is
:
;
.
#
To add a class of "green" to a div element
<div id="green"></div>
<div class="green"></div>
<div></div class="green">
<div>class="green"</div>
To make a series of block-level elements display side-by-side instead of vertically
display: block;
display: inline-block;
display: circle;
display: wide;
Placing CSS style rules in the HEAD section of an HTML page is called ___ style rules.
Embedded
Inline
External
Efficient
Two classes are assigned to the same element
<div class="class1 class2"></div>
<div class="class1" "class2"><div>
<div class="class1" id="class2"></div>
<div class="class1 and class2"></div>
One ID and one class are assigned to the same element
<div id="abc" and class="xyz"></div>
<div id="abc class=xyz"></div>
<div id="abc" class="xyz"></div>
<div id="abc xyz"></div>
If you have more than one class to assign to element
separate them with a blank space inside the quotation marks
separate them with a comma inside the quotation marks
separate them with a semicolon inside the quotation marks
forget about it - it can't be done!
