InterviewSolution
Saved Bookmarks
| 1. |
What is the difference between “display: none” and “visibility: hidden”, when used as attributes to the HTML element. |
|
Answer» When we use the attribute “visibility: hidden” for an HTML element then that element will be hidden from the webpage but still TAKES up space. WHEREAS, if we use the “display: NONE” attribute for an HTML element then the element will be hidden, and ALSO it won’t take up any space on the webpage. |
|