Computer >> Computer tutorials >  >> Programming >> CSS

Hide an element from view with CSS


To hide an element from view, use the visibility property with the value hidden. You can try to run the following code to implement the visibility property − 

Example

<html>
   <head>
   </head>
   <body>
      <p>
         This paragraph should be visible.
      </p>
      <p style = "visibility:hidden;">
         This paragraph should not be visible.
      </p>
   </body>
</html>