0
Elements in DOM
Iâm having problems with this question! Can anyone help? Fill in the blanks to change the background colour of all span elements of the page. var s = document. Get ElementsByTagName (â****â); ***(var x=0; x<s.length;x++) { s[*].style.backgroundColor = â#33EA73â; } The first part I donât get ****, a four letter entry? Can anyone help?
5 RĂ©ponses
+ 1
thanks
+ 1
I think it should be "span" (you have to change background color of span elements), "for", "x".
0
The answer is "span".
It will return an array with all the span elements in the page.
0
Brent Malcolm You 're welcome!
0
yes it is, i answered it correctly a couple of days ago, but the module came up as unanswered the next day, and being so busy, i didnt take notes!