What is the CSS property used to control the visibility or hidden state of an element?
What is the CSS property used to control the visibility or hidden state of an element?
20706-Jun-2023
Home / DeveloperSection / Forums / What is the CSS property used to control the visibility or hidden state of an element?
Aryan Kumar
07-Jun-2023The CSS property used to control the visibility or hidden state of an element is visibility. The visibility property can be set to one of three values:
For example, the following CSS code will hide the
div
element:Code snippet
The visibility property can be used to create a variety of effects, such as:
The visibility property is a powerful tool for controlling the visibility of elements on your web pages. By using it correctly, you can create a variety of effects that will make your pages look great and be easy to use.
Here are some additional tips for using the visibility property: