I am facing trouble in naming(id,class attribute) my div,span,p tag. I know that they should be structural not presentation. What name should be given to it. Is there any book available for practicing these names.
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12612
posted
0
They should be named what they are, like "address" or "user" or "blogTitle" or whatever. I'm not sure what there is to practice, really.
Bear Bibeault
Author and opinionated walrus
Marshal
My guidelines are to be clear and to be expressive. Avoid silly abbreviations (unlike on Wheel of Fortune, vowels are not expensive, don't leave them out!) Be careful to avoid reserved words ("submit" being a common landmine). Be semantic.
Bear Bibeault wrote:My guidelines are to be clear and to be expressive. Avoid silly abbreviations (unlike on Wheel of Fortune, vowels are not expensive, don't leave them out!) Be careful to avoid reserved words ("submit" being a common landmine). Be semantic.
Hey Bear,
Can you refer some book for this type of practicing. I will be thankful to you.
Bear Bibeault
Author and opinionated walrus
Marshal