HTML5 Reference

HTML5 <!--...--> (comment) tag


The <!--...--> (comment) tag allows us to document our code with useful comments and is ignored by browsers. Just replace the ellipses with the comments you want to enter. The tag can be used multiples times in a HTML document.


<!DOCTYPE html>
<!-- The Basic Structure of a HTML document follows -->
<!-- Everything goes between the start and end HTML tags. -->

<!-- The header contains meta information pertaining to the HTML document as well 
as a title and other stuff we will discuss in HTML4 Intermediate/Advanced lessons.
External files such as CSS stylesheets and JavaScript files are also imported in
the header section of our HTML file. -->

  <title>A Title which will appear in the Windows title bar.</title>

<!-- The content of the web page appears in the body section. -->


<!-- We complete the HTML file with the closing HTML tag. -->

<!--...--> (comment) Specific Attributes


Global Attributes


Event Attributes


Relevant HTML Tutorial

HTML Lessons - Comments