+3 votes
6.1k views
How to comment on lines of code in HTML and PHP

in HTML5 / CSS3 by (552k points)
reopened | 6.1k views

1 Answer

+4 votes
Best answer

Here I show you how to comment code, it is important to do so, to put notices, notes etc. We also make programming understand for others and for ourselves because over time we do not remember the programmed parts well and it can be very useful.


Comments in HTML

 <! - This would be a Comment -> 
To comment on several lines, it would be like this:
 <! - Comment of several lines or code that you want to disable <p> This code will be disabled when it is inside the comment </ p> -> 

Comments on PHP

There are two ways to do it, to comment only one line that would be like this:
 // This line would be commented 
Or this one that would be to comment several lines:
 / * These would serve to comment several lines of code and would be commented * / 

by (3.5m points)

Related questions

+4 votes
1 answer
asked Jun 24, 2019 in HTML5 / CSS3 by backtothefuture (552k points) | 271 views
+5 votes
1 answer
asked Sep 26, 2019 in HTML5 / CSS3 by backtothefuture (552k points) | 319 views
+5 votes
1 answer
asked Jun 23, 2019 in HTML5 / CSS3 by backtothefuture (552k points) | 247 views
+3 votes
1 answer
asked Jun 23, 2019 in HTML5 / CSS3 by backtothefuture (552k points) | 256 views
+3 votes
1 answer
Sponsored articles cost $40 per post. You can contact us via Feedback

Most popular questions within the last 30 days

10,659 questions
10,791 answers
510 comments
3 users