The ______ CSS property is utilized to control the visibility of an element in the HTML body.

  • background-visibility 
  • display 
  • opacity 
  • visibility 
The visibility CSS property can either hide an element (hidden) or show it (visible). Unlike the display property, which removes the space taken by the element, the visibility property retains the space even if the element is hidden. opacity, on the other hand, can make an element semi-transparent or fully transparent, but it doesn't hide the element in terms of interactivity. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *