Element Quote by Eric Freeman
““As of HTML5, you are allowed to use all numbers as an element id. As””
About This Quote
Source Documentation: HTML5 Specification, 2008
HTML5 permits any numeric string as an element ID, expanding identifier flexibility.
In simple terms: Numbers can be used as IDs in HTML5.
Use numeric IDs where appropriate.
Themes
Mood
Type
When to use this quote
- Form building
- dynamic scripting
- accessibility testing
Key Concepts
Questions to Reflect On
- When should you avoid numeric IDs?
- How do IDs affect accessibility?
Numeric IDs may cause confusion with CSS selectors; best practices advise descriptive IDs.