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


Please Help Members By Posting Answers For Below Questions

What is a combobox in html?

639


What are dom methods?

625


Explain the layout of html?

609


Explain

tag in html5?

716


how do we create a worker thread in JavaScript?

693


What is the advantage of using frames?

734


What does tag stand for military?

636


What is html directive?

632


How do you use attributes?

656


What does a td stand for?

728


What are xhtml files?

644


Are there any problems with using tables for layout?

646


What is syntactic rule?

589


Differentiate between Canvas and SVG?

702


What is html short answer?

625