1. Retrieve H2 header of a webpage and assign the result to some variable named
ID: 3545424 • Letter: 1
Question
1. Retrieve H2 header of a webpage and assign the result to some variable named bigheader.
2. Retrieve first element of a webpage which has id nt564 and assign the result to some variable named nt564.
3. Retrieve first paragraph of the webpage and assing to variable called firstpara.
4. style all anchor element, tag is sos, of a webpage so the forground color is black
5. style all H1 header that inside paragrah of a webpage so that thier background color is blue and the heigh is 120 px.
Explanation / Answer
1) var bigheader = $("H2");
2) var nt564 = $("#nt564");
3) var firstpara = $("p:first");
4)
5) var h1_in_p = $("p H1");
h1_in_p.css({"background-color":"blue","line-height":"120px"});
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.