xon
HTML
Home
Services
Web Development
Android Development
Content Writing
Video Editing
Internships
Web Development Internship
Android Development Internship
Graphic Design Internship
Machine Kearning Internship
Contact Us
HTML Comments
HTML Introduction
HTML History
HTML Text Editors
HTML Comments
HTML Basic Programs
HTML Attributes
HTML Tags
HTML Headings
HTML Paragraphs
HTML Text Formating
HTML Lists
HTML Colors
HTML Links
HTML Images
HTML favicons
HTML Form
HTML Responsive
HTML Project
HTML Comments
Comments are a piece of code that is ignored by a web browser.
Comments help us to understand the code.
All programming language has their commenting style.
In HTML, we use
<!-- content -->
tag. Any content placed in these brackets will be treated as a comment.
Shortcut Keys are "
Ctrl + /
" . This will automatically put our selected content as a comment
There are two types of comments:
Single comments
and
Multiline comments.
HTML Code:
< !DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <!-- This is a comment --> <p>This is a paragraph.</p> </body> </html>
Copy Codes
« Previous
Next »