Horje
How to Hide HTML Content Part 2

You can also hide more than one line. Everything between the <!-- and the --> will be hidden from the display.


Example of Hidding HTML Content Part 2

Hide a section of HTML code:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<p>This is a paragraph.</p>
<!--
<p>Look at this cool image:</p>
<img border="0" src="pic_trulli.jpg" alt="Trulli">
-->
<p>This is a paragraph too.</p>

</body>
</html>

Reffered: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_comment_out





Related Articles
What is HTML Comments HTML Comments
How to create HTML Comment Tag HTML Comments
How to add HTML Comments HTML Comments
How to Hide HTML Content HTML Comments
How to Hide HTML Content Part 2 HTML Comments
How to hide Inline Content HTML Comments

Single Articles
Example of Hidding HTML Content Part 2HTML Comments

Read Full:
HTML Comments
Category:
Web Tutorial
Sub Category:
HTML Comments
Uploaded:
1 year ago
Uploaded by:
Admin
Views:
20



Share on: