|
|
|
|
|
by Facens
5550 days ago
|
|
Another best practice I have is to place a comment on each closing element, referring to the opening one.
So,I have:
<div class="CLASS">
CONTENTCONTENTCONTENT
</div> <!-- .CLASS --> When you have complex pages, with several nesting levels, this can save much, much time. |
|
Now you've got comments saying in correct things, and you risk all sorts of confusion.
The same rule applies to commenting methods in code really, you don't comment what the code does exactly - just what the intention of the code is.