+1 vote
by
How do I change the style of the label element (let's say red) in pure JS?
I realized that you can only change the style if you specify a class or id, but I need to change the style of all the label elements on the page in general.
How do you do that?

1 Answer

0 votes
by
 
Best answer
he only if you specify a class or id

It's not.

https://developer.mozilla.org/ru/docs/Web/API/Docu...
You get a list of items. Go through them. For each you change the style.
...