HTML Comments | lesson 12 HTML Tutorial
HTML Comments Image

HTML Comments | lesson 12 HTML Tutorial

In This lesson we will learn how to create the comments in html so that it could help organize your code. And make it more readable and maintainable.

HTML Comments Video

HTML Comment Tags

You can add comments to your HTML source by using the following syntax.

Fore Example:


<!-- This is comment code --> 

Notice: There is an exclamation point (!) in the opening tag, but not in the closing tag.

Note: Comments are not displayed by the browser, but they can help document your HTML source code so that you could make your cod more readable and easy to be maintained.

Example:

 <!-- This is a comment Code Example -->
<p>paragraph Text.</p>
<!-- Another comment code --> 

Also, comments are great for debugging HTML, because you can comment out HTML lines of code, one at a time, to search for errors.

Example:

<!-- Do not display this image at the moment
<img src="safhatech_image.jpg" alt="safhatech">
-->

Note: The previous code will show no thing in browser.


This post is one of the HTML5 for deep understanding course. where we will learn every common elements from basic to the advanced element.

In addition each lesson has a video which you could visit and watch for more practicing and for deep understanding.

We hope that we could give the best for you and for the deep and easy understanding.

You could follow the series from our website SAFHATECH.com and go to categories and then programming and then Choose the course you want then just click next post to go step by step.

Finally we hope every thing is works as you suspect.


Consequently You could follow us at :

Website URL: https://www.safhatech.com/

Youtube: https://www.youtube.com/channel/UCIVzh6iykNowNcOUT5Gfasw

Twitter: http:// https://twitter.com/safhatech

Instegram: https://www.instagram.com/safhatech

Facebook: http:// https://www.facebook.com/Safhatech-487171875443687

Phone:967772223681

This Post Has One Comment

Leave a Reply