I am a web developer for almost 2 years now and I am still learning new things every day, but since my knowledge gets bigger, I came across some fundamental question and couldnt find a good discussion about it.
How do you name your DIVs, IDs, Classes? Do you give them specific content related names? (i.e. <div id="google_map">
)
Or do you name them related to their position on the site? (i.e. <div id="content_top_bar">
)
And do you do this in your .css the same way?
I hope you get what i am trying to find out. I guess there is no "true" answer anyways, but I would like to know some opinions, so that I can decide what option to take and keep working with it in the future.