What is the method of using comment line in html code? explain with the help of an example
Answers
Answered by
0
comment to an HTML document. An HTML comment begins with <! –– and the comment closes with ––> . HTML comments are visible to anyone that views the page source code, but are not rendered when the HTML document is rendered by a browser.
code example:
You will be able to see this text.
<!-- You will not be able to see this text. -->
You can even comment out things in <!-- the middle of --> a sentence.
<!--
Or you can
comment out
a large number of lines.
-->
<div class="example-class">
Another thing you can do is put comments after closing tags, to help you find where a particular element ends. <br>
(This can be helpful if you have a lot of nested elements.)
</div> <!-- /.example-class -->
Similar questions