To hide an element, use the visibility attribute and set its value to hidden. You can try running the following code to implement the visibility property −
<html> <head> </head> <body> <p> This paragraph should be visible. </p> <p style = "visibility:hidden;"> This paragraph should not be visible. </p> </body> </html>
The above is the detailed content of Hide elements from view using CSS. For more information, please follow other related articles on the PHP Chinese website!