How to comment out a line in HTML?

In the work of the programmer, you constantly have to make some notes in the form of comments, in order to describe part of the code or notes for the future. Each language has its own syntax, which is why when developing web pages, a frequent problem is not knowing how to comment out a line in HTML or just a small block.

HTML Comments

When developing a web page, sometimes it is necessary to temporarily hide part of the code or make a note for the programmer. In order not to use additional applications, for example, transferring part of the code to another file, you need to know how to comment out a line in HTML.

html comment




, HTML . "" , . , .

HTML . "<!--", : "-->". , , , .





html comment out code




, . , , - , - . - .

:

<!--

<p> .</p>

-->

<comment>

HTML - <comment>. , , Internet Explorer 8.0. <comment> , IE 8.0, 4.0 , . , , , <body>.





, , " ":

<body>

<comment>

<div> </div>

</comment>

</body>.

, HTML . HTML, . .

, , , HTML . , , .

how to comment out a line in html




, , . "//", . , "/*" , "*/" . "/*" , HTML-.

:

<script">

/* <p> .</p> */

</script>.




All Articles