Can I have an element with an ID that starts with a number?

Can I have an element that has an id that starts with or is completely numbers?

E.g. something like this:

<div id="12"></div>

145 thoughts on “Can I have an element with an ID that starts with a number?”

Leave a Comment