- Do you use commenting? -
Well, I was just thinking - In HTML & PHP, I comment alot.
But I don't see other people commenting when using html.
I find that by commenting, the HTML & PHP code, I can remember things more easier and also, it just makes the code easier to read.
- How do I comment? -
In HTML, you can comment by;
Adding; <!-- before the comment, and..
Adding; --> after the comment.
In PHP, you can comment by;
Adding; // before short comments, and..
/* and */ after blocks of comments.
- Commenting good or bad? -
Some people think commenting can make codes look bulky, ugly or hard to read, but I think it's the opposite.
As I don't see alot of HTML anymore with comments, I was just thinking if people have stopped commenting as they might think it's a bad idea.
What do you think?





Reply With Quote


), when working by myself just opening and closing divs - easier to keep track of, and basic php stuff.
lol.


