I have been a web developer for almost 2 years now, and every day I still learn new things, but as my knowledge becomes more and more, I came across some fundamental question and did not find a good discussion about it.
What do you call your div, id, classes? Do you give them specific names related to the content? (i.e. <div id="google_map">)
Or do you call them related to their position on the site? (i.e. <div id="content_top_bar">)
And you do it in your .css the same way?
I hope you get what I'm trying to find out. I think that in any case there is no “true” answer, but I would like to know some opinions so that I can decide which option to take and continue to work with him in the future.
source
share