NEW
Font size
WorksheetsCSS and JQuery
Total questions: 9
Worksheet time: 5mins
The "#" is used to select an html element by its:
class
id
name
data attribute
The "." is used to select an html element by its:
favorite color
id
class
name
The following is correct syntax for CSS
p { color: red; }
True
False
When would the following code be run
$(function() {});
When the user requests the page
When the user pushes a button
After all the elements are loaded
Never
CSS stands for
Cascading Style Sheets
Creative Style Settings
Compact Software Settings
Creative Setting Selectors
Which of the following is selected by $('.foo')?
<p>Foo</p>
<img id='foo'></img>
<div class='foo'></div>
<foo></foo>
Which of the following is selected by $('#bar')?
<div class='bar'></div>
<p data-bar='bar'></p>
<h1>bar</h1>
<img id='bar'></img>
which of these CSS selectors would select all of the <img> tags in a <div>
img div
img.div
div img
div.img
Given the following, what would $('.foo').data('info') return?
<div id='foo' data-info='google' data-test='bar'></div>
bar
div
undefined
