Comment out HTML, CSS, Javascript and PHP

Tachira

New member
Joined
Mar 15, 2014
Messages
4
Points
0
Hi everyone,

Sometimes I get confused with comment out in html, css, javascript and php
Could you show me any way to use exact comment out in these programming languages?

Thank much!
 

elcidofaguy

Well-known member
Joined
Jan 13, 2015
Messages
1,281
Points
113
PHP use either:
// Line by line comment

The below works for PHP and CSS:
/*
Multiple lines ....
second line etc ....
*/

/*Or on a single line*/

For HTML (works on multiple lines also):
<!-- Comment -->
 

Hassan

New member
Joined
Nov 11, 2014
Messages
706
Points
0
HTML comment
Code:
<!--
<code>
 -->
CSS, JavaScript, and PHP Comments
Code:
// <code>
or

Code:
/*
<code1>
<code2>
<code3>
*/
 
Newer threads
Replies
3
Views
6,392
Replies
3
Views
6,660
Replies
6
Views
3,482
Recommended threads
Similar threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top