hide text in html code example

Example 1: how hide in html

#elementID{
display:none;
}

Example 2: css hide element

.classname {
    display: none;
}

Example 3: hiding text css

display: none;

Example 4: html hidden

<!-- stops an element from rendering, but still loads it to memory-->
<p>this will show</p>
<p hidden>Thill will not show</p>

Example 5: how to hide code in html

<!DOCTYPE html>
<html>
<body>

<!-- This is a comment -->
<p>This is a paragraph.</p>
<!-- Comments are not displayed in the browser -->

</body>
</html>

Tags:

Css Example