4th Street Bar Hive-Bar

Hive-Bar Powered by Hive beta-fdb5b5b

Community post

HTML 5 Tutorial #11 - HTML Comments

HTML Comments

Inserting a comment is really helpful in coding. It serves as your note, notifications or reminder.

HTML Comment Tags

To add comments to your HTML file, use the following syntax:
<!-- Write your comments here -->

Browsers won't display the comments. Its purpose it to help you to document your file. Notice that there is an exclamation point (!) in the opening tag, but not in the closing tag.

Example.png

Because you can comment out HTML lines of code, one at a time, comments are also great for debbuging errors.

Example.png


HTML 5 Tutorials:

HTML 5 Tutorial #1 - Introduction
HTML 5 Tutorial #2 - HTML Editors
HTML 5 Tutorial #3 - HTML Basic
HTML 5 Tutorial #4 - HTML Elements
HTML 5 Tutorial #5 - HTML Attributes
HTML 5 Tutorial #6 - HTML Headings
HTML 5 Tutorial #7 - HTML Paragraphs
HTML 5 Tutorial #8 - HTML Styles
HTML 5 Tutorial #9 - HTML Text Formatting
HTML 5 Tutorial #10 - HTML Quotation and Citation Elements

21 upvotes $7.58

Replies (9)

Review before signing

Posting as . Signing with . Keychain permission: Posting. Hive Keychain will ask you to approve this action next.


  
Technical details

Operation fingerprint: