HTML Comments

 Eduaction Management 959 Lahore

Code With Jahangir 

HTML Comments

FREE COURSES 

FREE CERTIFICATE

HTML Comments

 

  •   Comments are a piece of code that is ignored by a web browser.
  •   Comments help us to understand the code.
  •   All programming language has their commenting style.
  •   In HTML, we use  <!--     content   --> tag. Any content placed in these brackets will be treated as a comment.
  •   Shortcut Keys are "Ctrl + /" . This will automatically put our selected content as a comment
  •   There are two types of comments: Single comments and Multiline comments.

 

 

Single comments:

Single-line comments are the comments which are in a single line only.

For example:

<!-- Single line Comment --> 

Multi-line comments:

Multi-line comments are the comments which are in multiple lines.

For example:

<!--
This is a multiline comment.
You can add as many as lines you want.
-->

 

 Eduaction Management 959 Lahore

Code With Jahangir 

HTML Comments

FREE COURSES 

FREE CERTIFICATE

Previous Post Next Post

Contact Form