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 Comment Tags
You can add comments to your HTML source by using the following syntax.
<!-- 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.
<!-- 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.
<!-- 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/