HTML Comments

8
61

  • Comment tags are used to insert comments in the HTML source code.



HTML Comment Tags

You can add comments to your HTML source by using the following syntax:
<!– Write your comments here –>
Notice that 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.
With comments you can place notifications and reminders in your HTML:

Example

<!– This is a comment –>

<p>This is a paragraph.</p>

<!– Remember to add more information here –>

Try it Yourself »

Comments are also 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 at the moment
<img border=”0″ src=”pic_trulli.jpg” alt=”Trulli”>
–>
Previous articleHTML Quotation and Citation Elements
Next articleHTML Colors
Samuel Adesanya
My name is Samuel Oluwatosin Adesanya from Lagos Island, Nigeria. I am WordPress Developer, Graphics Designer and a Social Media Manager. Currently working as a Social Media Manager and Instructor for BitVal Learning Services, I am also available to work remotely for any IT positions. I am a translator that is very conversant with English, French, Korean, Arabic and Turkish Language. I also run advert across all social media platforms and register business presence online, currently running and building my learning platform; https://www.bitvaltrades.com

8 Comments

  1. Easy "water hack" burns 2 lbs OVERNIGHT

    Well over 160000 women and men are losing weight with a easy and secret "liquids hack" to lose 1-2 lbs every night while they sleep.

    It's very simple and works every time.

    Just follow these easy step:

    1) Go grab a clear glass and fill it with water half glass

    2) Then do this crazy hack

    and you'll become 1-2 lbs thinner the next day!

Leave A Reply

Please enter your comment!
Please enter your name here