Horje
How to Hide HTML Content

Comments can be used to hide content.

This can be helpful if you hide content temporarily:


Example of Hidding HTML Content

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<p>This is a paragraph.</p>

<!-- <p>This is another paragraph </p> -->

<p>This is a paragraph too.</p>

</body>
</html>

Output should be:

Example of Hidding HTML Content





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 ContentHTML Comments

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


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

Share on: