DIV ID vs DIV CLASS
DIV ID vs DIV CLASS
Out of context: Reply #4
- Started
- Last post
- 12 Responses
- asprin0
General rule is IDs are unique and can only be used once on a page while classes can be applied to any tag ie:
etc.
I used IDs for the basic structre of the page... header, nav, content area, parent container, footer etc.