Home of web learners

www.webn3rd.com

Display is used to change display content in webpage

Lets look an example:

<html>
<head>
<style>
#dp{ display:none; }
</style>
</head>
<body>
<p id="dp">This is a text </p>
<p>This is another text </p>
</body>
</html>

output:

This is another text

This is another text

Here we see that first text is not displayed,difference between visiblity hidden and display none is in visibility hidden content blocks its place but not shown,but in diplay none content is like destroyed,not block place of it

webn3rd.com

About webn3rd