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

in HTML5 / CSS3 by (358k points)
reopened | 5.9k 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 (2.2m points)

Related questions

+4 votes
1 answer
asked Jun 24, 2019 in HTML5 / CSS3 by backtothefuture (358k points) | 127 views
+5 votes
1 answer
asked Sep 26, 2019 in HTML5 / CSS3 by backtothefuture (358k points) | 127 views
+5 votes
1 answer
asked Jun 23, 2019 in HTML5 / CSS3 by backtothefuture (358k points) | 105 views
+3 votes
1 answer
+3 votes
1 answer
asked Jun 23, 2019 in HTML5 / CSS3 by backtothefuture (358k points) | 132 views
Please leave a comment about whether the solution works or not (with device model)   [X]Close
6,866 questions
6,963 answers
274 comments
2 users