Source code

Revision control

Copy as Markdown

Other Tools

<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<head>
<title>Testing Visibility</title>
</head>
<body>
<div>
<span id="hideMe" onclick="this.style.display = 'none';">Click to hide me.</span>
</div>
<div id="zero" style="width:0;height:0">
<div>
<img src="map.png">
</div>
</div>
<p id="suppressedParagraph" style="display: none">A paragraph suppressed using CSS display=none</p>
<div>
<p id="displayed">Displayed</p>
<form action="#"><input type="hidden" name="hidden" /> </form>
<p id="none" style="display: none;">Display set to none</p>
<p id="hidden" style="visibility: hidden;">Hidden</p>
<div id="hiddenparent" style="height: 2em; display: none;">
<div id="hiddenchild">
<a href="#" id="hiddenlink">ok</a>
</div>
</div>
<div style="visibility: hidden;">
<span>
<input id="unclickable" />
<input type="checkbox" id="untogglable" checked="checked" />Check box you can't see
</span>
</div>
<p id="outer" style="visibility: hidden">A <b id="visibleSubElement" style="visibility: visible">sub-element that is explicitly visible</b> using CSS visibility=visible</p>
</div>
<input type='text' id='notDisplayed' style='display:none'>
</body>
</html>