This simple HTML code will help you to apply visibility through CSS. This example contains example of both options
1. visible
2. hidden
When you run this code. It will display tag only containing visible. by default all tags are visible.
<html>
<head>
<style type="text/css">
h1.visible {visibility:visible}
h1.invisible {visibility:hidden}
</style>
</head>
<body>
<h1 class="visible">This will display because of visible option</h1>
<h1 class="invisible">This will not display because of hidden option</h1>
</body>
</html>
No comments:
Post a Comment