Page 1 of 1

HTML Comments

Posted: Fri Oct 27, 2023 8:04 am
by Guest
HTML Comments


HTML comments are not displayed in the browser, but they can
help document your HTML source code.

HTML Comment Tag
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 start tag, but not in the
end tag.

Note: Comments are not displayed by the browser, but they can help document your HTML source code.


Add Comments
With comments you can place notifications and reminders in your HTML code:

Example

<!-- This is a comment --><p>This is a paragraph.</p>
<!-- Remember to add more information here -->
Try it Yourself »


Hide Content
Comments can be used to hide content.
This can be helpful if you hide content temporarily:

Example

<p>This is a paragraph.</p><!-- <p>This is another paragraph
</p> --><p>This is a paragraph too.</p>

Try it Yourself »

You can also hide more than one line. Everything between the <!-- and the -->
will be hidden from the display.

Example
Hide a section of HTML code:

<p>This is a paragraph.</p><!--<p>Look at this cool
image:</p>
<img border="0" src="pic_trulli.jpg"
alt="Trulli">--><p>This is a paragraph too.</p>

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.







Hide Inline Content
Comments can be used to hide parts in the middle of the HTML code.

Example
Hide a part of a paragraph:

<p>This <!-- great text --> is a paragraph.</p>

Try it Yourself »


HTML Exercises

Test Yourself With Exercises

Exercise:
Use the HTML comment tag to make a comment out of the "This is a comment" text.

<h1>This is a heading</h1>

This is a comment

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


Submit Answer »
Start the Exercise















+1

Reference: https://www.w3schools.com/html/html_comments.asp

Re: <t>HTML Comments</t>

Posted: Wed Mar 18, 2026 9:24 am
by jonsen
Hey, I was casually browsing online and came across a casino, at first I lost a few rounds in a row and thought about quitting, but then I took a bigger risk and using aviator betking I managed a nice win on Starburst, the bonuses for players in Nigeria really enhance the experience, and I return occasionally for fun and excitement.

Re: <t>HTML Comments</t>

Posted: Tue Mar 24, 2026 9:24 am
by Martinez
Ever struggle to remember HTML comment syntax? I always used to mix up the angle brackets and exclamation points! What finally helped me was remembering the "<!--" starts it, like an arrow pointing left, and "-->" ends it, pointing right, containing the comment. Now it's second nature. Anyone else have a silly mnemonic device that stuck with them? On another note, have you ever played basket random ?

Re: <t>HTML Comments</t>

Posted: Sat Apr 04, 2026 6:22 pm
by alexseen
Ενα βραδυ χωρις σχεδιο αρχισα να ψαχνω διαφορα sites για κατι καινουριο Ηθελα κατι απλο και βρηκα το afk spin που φανηκε ευχρηστο Στην Ελλαδα υπαρχουν πολλες επιλογες αλλα δεν ειναι ολες ευκολες Εδω υπαρχουν μπονους και προσφορες και καποιες συμβουλες που βοηθανε να καταλαβεις καλυτερα πως λειτουργει Δεν ηταν δυσκολο και μου κρατησε ενδιαφερον

Re: <t>HTML Comments</t>

Posted: Thu Jun 11, 2026 5:21 pm
by johnbarnes
jonsen wrote: Wed Mar 18, 2026 9:24 am Hey, I was casually browsing online and came across a casino, at first I lost a few rounds in a row and thought about quitting, but then I took a bigger risk and using aviator I managed a nice win on Starburst, the bonuses for players in Nigeria really enhance the experience, and I return occasionally for fun and excitement.
Bro I'm literally the same way with Aviator, that game just hits different when you get the timing right. I play it almost daily on the Mostbet Pakistan app at https://mostbet-pak.pk/app/ and honestly it's the smoothest version I've tried, no lag when the multiplier climbs and cashout registers instantly. My colleague at work got hooked on it too after he saw me playing during lunch break, now we compare our best multipliers every morning like it's a competition. The app feels native and clean, never had it crash mid-flight which used to happen on other platforms and drove me crazy. If you're into Aviator this version is worth having on your phone.

Re: <t>HTML Comments</t>

Posted: Fri Jun 12, 2026 7:16 am
by Zachaarker
This is super helpful for understanding HTML comments! It reminds me of how on Omegle, sometimes people would write little notes to themselves in the chat before sending a message, almost like a private comment. It's cool how a similar concept applies to code!