What is the difference between `display: none` and `visibility: hidden`?

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

What is the difference between `display: none` and `visibility: hidden`?

Post by answerhappygod »

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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This topic has 1 reply

You must be a registered member and logged in to view the replies in this topic.


Register Login
 
Post Reply