Heads up for JavaScript users: all IDs become global variables under window.
Foo Title
Just created the JS global:
window.foo
The value of window.foo
will be the HTMLElement
for the h1
.
Unless you can guarantee all values used in id
attributes are safe, you may prefer sticking to name
:
Foo Title