+ 2
Fill in the blanks to change the background color of all span elements of the page.
var s = document. getElementsByTagName(" "); (var x=0; x<s.length;x++) { s[ ].style.backgroundColor = "#33EA73"; }
6 Respostas
+ 10
var s = document.getElementsByTagName("span");
for(var x=0; x<s.length; x++) {
s[x].style.backgroundColor = "#33EA73";
}
+ 4
Did you get this from the lessons? actually, you can see the comments in lessons to solve this,
var s = document.getElementsByTagName("span");
for(var x=0; x<s.length;x++)
{
s[x].style.backgroundColor = "#33EA73";
}
0
var s = document.
getElementsByTagName("
span
");
for
(var x=0; x<s.length;x++) {
s[
x
].style.backgroundColor = "#33EA73";
}
0
var s = document.
getElementsByTagName("span");
for(var x=0; x<s.length;x++) {
s[x].style.backgroundColor = "#33EA73";
}
0
Thanks
0
var s = document.
getElementsByTagName("
span
");
for
(var x=0; x<s.length;x++) {
s[
x
].style.backgroundColor = "#33EA73";
}