How do I target HTML with JS? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do I target HTML with JS?

26th Mar 2019, 11:20 AM
Jake Serrano
Jake Serrano - avatar
5 Answers
+ 12
We are not sure what you are talking about. Better if you rephrase your question stating what exactly you want to ask. https://www.sololearn.com/discuss/1316935/?ref=app
26th Mar 2019, 11:23 AM
Letsintegreat
Letsintegreat - avatar
+ 9
Using script keyword..
26th Mar 2019, 11:42 AM
Ponn Ganapathy
Ponn Ganapathy - avatar
+ 2
Here is how you would do It with JavaScript but It is always better if you can achieve It with CSS https://code.sololearn.com/WhtVOz9qCj56/?ref=app
26th Mar 2019, 9:41 PM
Jorge
Jorge - avatar
+ 1
In css you target html like this : .head{border-color: red;} How do we do it with JS?
26th Mar 2019, 11:41 AM
Jake Serrano
Jake Serrano - avatar
0
Care to elaborate?
26th Mar 2019, 12:33 PM
Jake Serrano
Jake Serrano - avatar