Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
TorbjornLunde
· 15y ago · 0 comments
Another problem with IDs is that they make the "point system" in selectors much more complicated than if you only use classes and elements.
Comments
[–]
carterdea
15y ago
What about an ID for main page elements and things that never will change like #header or #footer or #sidebar?
[–]
jarin
15y ago
Ideally for those you would use the html5 header, footer, and aside tags, respectively. You can use the html5 Javascript shim to enable support for those tags in IE.
[–]
job45
15y ago
sidebar is not equal aside, and you can have several headers footers on one page.