How did I know such a thing existed?
The truth is every HTML element has dozens of special properties you can manipulate in your Javascript code.
Anything you can do in HTML by manually writing HTML code, you can also do programmatically from your Javascript code.
That's where the power comes from.
W3schools has a mass of information about HTML properties, and you should eventually become quite familiar with them.
Don't feel you need to memorize them — most people look them up every time.
|