HI all,
I've just heard a tutorial about not naming DIV's after "Where it appears on the page or how it looks" because where and looks both change. So they decided to try and name it more semantically about the context.
EG: Instead of...
we'd try names like...
I'm wondering what you also put in as a DIV "ingredient"? I'm especially interested if you work in a large studio what naming conventions your place of employment might have?
I've just heard a tutorial about not naming DIV's after "Where it appears on the page or how it looks" because where and looks both change. So they decided to try and name it more semantically about the context.
EG: Instead of...
Code:
div#left { }
div#right { }
div#big-box { }
we'd try names like...
Code:
div#container { }
div#branding { }
div#content { }
div#content_main { }
div#content_sub { }
ul#nav-main { }
div#site_info { }
I'm wondering what you also put in as a DIV "ingredient"? I'm especially interested if you work in a large studio what naming conventions your place of employment might have?