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,039
Replies
3
Views
6,152
Replies
6
Views
3,251
Latest threads
Hi
Replies
1
Views
65
Replies
1
Views
65
Replies
1
Views
58
Recommended threads
Replies
0
Views
6,285
Replies
3
Views
2,008
Replies
4
Views
3,425
Replies
9
Views
10,700
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