CSS Visibility

by Abhishek 20-Jul-16

219 0 679

CSS Visibility: The visibility property in CSS two property. The CSS rules visibility: hidden and show. It will be work something like html comment tags.

<!DOCTYPE html>
<html>
<head>
<title> CSS Visibility </title>
<style type="text/css">
.div1{
display:none;
}
.div2{
display:block;
}
</style>
</head>
<body>
<div class="div1"> display:none, if we use display none, then content of div1 will be not show </div>
<div class="div2"> display:block, if we use display block, then content of div2 will be show </div>
</body>
</html


Share:

Comments

Leave a Reply