float
property?
We want to target all HTML list items that are somewhere inside an unnumbered list whose class is “awesome”. Which of the following selectors will achieve this? Only one is correct.
"ul .awesome li"
"ul.awesome li"
"ul#awesome li"
"ul, awesome li"
"ul > .awesome li"
"ul > .awesome > li"
"ul > #awesome li"
"ul > #awesome > li"
We want to use jQuery to add at the beginning of each ‘li’ item in the document the html code: "<span>Awesome!</span>"
. Which of the following lines will achieve this? (You might want to create a mini-test page to test them). There is more than one correct answer, circle them all.
$("#li").prepend("<span>Awesome!</span>")
$("li").prepend("<span>Awesome!</span>")
$("li").prependTo("<span>Awesome!</span>")
$("<span>Awesome!</span>").before("li")
$("<span>Awesome!</span>").prependTo("li")
$("li").before("<span>Awesome!</span>")