सीएसएस प्रदर्शन:कोई नहीं;
प्रदर्शन:तत्वों को हटाए बिना उन्हें छिपाने के लिए किसी भी संपत्ति का उपयोग नहीं किया जाता है। यह कोई स्थान नहीं लेता है।
<!DOCTYPE html>
<html>
<head>
<style>
h3 {
display: none;
}
</style>
</head>
<body>
<h2>This heading is visible</h2>
<h3>This is a hidden heading</h3>
<p>The hidden heading does not take up space even after hiding it since we have used display: none;.</p>
</body>
</html> सीएसएस दृश्यता:छिपा हुआ;
दृश्यता:छिपी हुई संपत्ति भी एक तत्व को छुपाती है, लेकिन लेआउट को प्रभावित करती है यानी जगह लेती है। आइए एक उदाहरण देखें
<!DOCTYPE html>
<html>
<head>
<style>
h3 {
visibility: hidden;
}
</style>
</head>
<body>
<h2>This heading is visible</h2>
<h3>This is a hidden heading</h3>
<p>The hidden heading takes up space even after hiding it.</p>
</body>
</html>