- We can use comment lines in order to make it easier to code in html. In HTML, comment line start with <!- – and ends with – -> Comment line does not appear on the browser.
- Comment line helps us write more understandable codes by giving explanations, memos, or information. These are very important for the people who will read and correct the code after us.
- Important information such as password or user information should not be written on the comment line because the content of the comment line can be seen in the source code on the browser.
In HTML, comment line is created as follows.
<!-- Write your comments here -->