Html
<!-- comment here -->
Css
/*comment here*/
Javascript
<!-- comment 1 here
javascript code here
// comment 2 here -->
Without the <!-- and -->, the browser will display "comment here 1" as normal text. So if it is html document, you need to put <!-- and -->, if it is js document, you don't need to put <!-- and -->.
The two slash // tell the browser's JavaScript interpreter that the rest of the line is not valid JavaScript code.
Ajax
// comment here
Php
1) // comment here
2) # comment here
3) /* comment here */
Mysql
/* comment here */
Asp
'comment here
Tidak ada komentar:
Posting Komentar