What is the difference between “display: none” and “visibility: hidden”, when used as attributes to the HTML element.
Answer Posted / nashiinformaticssolutions
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.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we need html5?
What is empty tag and container tag?
What is the difference between canvas and svg?
Explain formtarget attribute of html5?
What is tr td th in html?
Can you use SVG tags directly in HTML5 without any plugin?
How xhtml is better than html?
What is the use of a span tag? Give one example.
How to use html5 new tags in ie8 and lesser.
Is center deprecated?
What is aria label?
Does a hyperlink only apply to text?
How will you align a table to the right or left?
How to you set the background image of the page using HTML?
What is the use of hidden field in html?