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 fieldset in html ?

599


What is doctype good for?

594


What is relation present in between

and

tags in html5?

604


What is the use of the required attribute in html5?

661


What is section tag in html?

609


What is uri?

621


What is everyone using to write html?

673


Write an html code to create an e-mail link?

671


What is transitional xhtml?

600


How to create sub sub navigation with html5 css3.

1127


What is unpaired tag?

648


List out the new features of html5?

592


What does dhmu mean in texting?

758


What does ts mean in texting?

666


What is a tag in html?

623