CSS

How to write comments in HTML

Comments in HTML are typically used to explain code. This will help you and others find the specific section of the document quickly and easily when modifying the source code. Comments are not displayed by browsers.

An HTML comment begins with <!– and ends with –>. See the example below:
 

Example :
<!-- This is a single line HTML comment -->

<!-- This is an example of
     Multiline HTML Comment -->

<p class="test">Lorem ipsum</p>
mcqMCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More

Leave a Reply

Your email address will not be published. Required fields are marked *