HTML Comment tag

HTML is the basic layout for every webpage on internet. As the site gets bigger code gets more and more complex. So to simplify this code section we add html comments for every section as per their use and code changes.

HTML Comment syntax

Comment tag is simply written inside in English brackets of less than and greater than.

Note : This comment tag does not support any event or standard attribute but can be used for commenting inside <script> tag. For JavaScript comment syntax is like this <!–…//–>

HTML Comment tag syntax is simple as <!–…–>

One can write anything related to page structure.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *