+ 1
Hi. I need some clarifications regarding the naming conventions of id's and classes in html pages
I have html page there I am using some css classes what could be the best way of naming conventions for the classes. Can we directly styles in html page itself instead of style sheet will it be a good practice
2 Réponses
+ 1
thank u
0
I'm not a web developer, but I would say keep them short but descriptive. Use things like menu_foo, menu_bar to indicate if something is used in particular sections.
You can style directly in html, but you generally shouldnt. The new standard is for all styling to be handled by CSS and all content to be in HTML