What is the difference between `display: none` and `visibility: hidden`?
A. The ג€display: noneג€ rule removes the element from the DOM. The ג€visibility: hiddenג€ rule leaves the element in the DOM.
B. The ג€display: noneג€ rule leaves the element in the DOM. The ג€visibility: hiddenג€ rule removes the element from the DOM.
C. The ג€display: noneג€ rule removes the space used by the element from the page. The ג€visibility: hiddenג€ rule reserves space on the page for the element.
D. The ג€display: noneג€ rule reserves space on the page for the element. The ג€visibility: hiddenג€ rule removes the space used by the element from the page.
What is the difference between `display: none` and `visibility: hidden`?
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is the difference between `display: none` and `visibility: hidden`?
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!