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,483
Latest threads
Replies
0
Views
25
Replies
0
Views
29
Replies
1
Views
38
Replies
3
Views
94
Similar threads
Top