How-to articles, tricks, and solutions about COMMENT

How and When to Write Comments in Javascript

There are 2 types of JavaScript comments: single-line and multi-line. See when to use them with examples, and also use comments to prevent execution when testing alternative code.

How to Add and Use CSS Comments

A CSS comment is used to give explanatory information to the code or to prevent the browser from trying to interpret particular parts of the style sheet.

How to Style Comment Box Using CSS

Style comment boxes, change the background color, add a background image or set borders to your comment box. See all with examples.