Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок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 ответов
+ 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!