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

in HTML5 / CSS3 by (551k 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 (551k points) | 254 views
+5 votes
1 answer
asked Sep 26, 2019 in HTML5 / CSS3 by backtothefuture (551k points) | 286 views
+5 votes
1 answer
asked Jun 23, 2019 in HTML5 / CSS3 by backtothefuture (551k points) | 226 views
+3 votes
1 answer
asked Jun 23, 2019 in HTML5 / CSS3 by backtothefuture (551k points) | 235 views
+3 votes
1 answer
asked Aug 12, 2021 in Internet by backtothefuture (551k points) | 142 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,633 questions
10,765 answers
510 comments
3 users