Posted By

apphp-snippets on 02/03/14


html in comments apphp

Versions (?)

Comments in HTML

 / Published in: HTML


The syntax is the HTML comment. This is the way to add your own notes into the code which will not display when the HTML is rendered by the browser. It is also a good practice for web-developers to use the comment tags to "hide" scripts from browsers without support for it (so they don't show them as a plain text).

  1. <!-- This is a comment. Comments are not displayed in the browser. -->
  3. <div id="header">
  4. <p>Some text</p>
  5. </div> <!-- END div-header -->
  7. <script type="text/javascript">
  8. <!--
  9. function ShowMessage()
  10. {
  11. alert("Hello World!")
  12. }
  13. //-->

Report this snippet  


RSS Icon Subscribe to comments
Posted By: dylaneales on October 4, 2018

Those who are searching over internet IT assignment help can contact with us now. We are the best assignment writing service provider in melbourne, Australia. Our Academic assignment writers available 24*7 hours for the students, if you really want to need IT assignment help, Computer science assignment help online at cheapest price and get high distinction grades.

You need to login to post a comment.