0

How to make this 2 tags ? Js

//Make only inputs with type 'text' have a gray background var background= document.querySelector("dIv") //Give both <p>'s inside the 3rd <div> a pink background var pink = document.getElementsByTagName("p") for ( var i=0; i<pink.length ; i++){ pink[i].style.background ="pink";}

12th Apr 2020, 5:23 PM
Улпан Аянбекова
Улпан Аянбекова - avatar
2 Réponses
+ 2
First show us your attempt
12th Apr 2020, 5:30 PM
Ayush Kumar
Ayush Kumar - avatar
0
ok
12th Apr 2020, 5:37 PM
Улпан Аянбекова
Улпан Аянбекова - avatar