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
5,531
Replies
3
Views
5,867
Replies
6
Views
3,189
Latest threads
Replies
0
Views
1
Replies
0
Views
123
Replies
2
Views
329
Recommended threads
Replies
7
Views
2,644
Replies
2
Views
1,786
Replies
12
Views
4,442
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