<style type="text/css">
div,p,h2,form,section,footer,header{
border: 1px solid #333;
}
</style>
<div>內容</div>
<p>內容</p>
<h2>內容</h2>
<form>內容</form>
<section>內容</section>
<footer>內容</footer>
<header>內容</header>
內容
<a href="http://www.google.com.tw">Google 連結</a>
<img src="images/logo.png">
<span>你好啊!</span>
Google 連結
你好啊!
<style type="text/css">
.square{
border: 1px solid #333;
width: 100px;
height: 100px;
}
</style>
<div class="square" style="background-color: red;">1</div>
<div class="square" style="background-color: yellow;">2</div>
<div class="square" style="background-color: lime;">3</div>
<style type="text/css">
.square2{
border: 1px solid #333;
width: 100px;
height: 100px;
display: inline-block;
}
</style>
<div class="square2" style="background-color: red;">1</div>
<div class="square2" style="background-color: yellow;">2</div>
<div class="square2" style="background-color: lime;">3</div>
<style type="text/css">
.square3{
border: 1px solid #333;
width: 100px;
height: 100px;
}
</style>
<div class="square3" style="background-color: red;">1</div>
<div class="square3" style="background-color: yellow; display:none;">2</div>
<div class="square3" style="background-color: lime;">3</div>
<style type="text/css">
.square4{
border: 1px solid #333;
width: 100px;
height: 100px;
display: initial;
}
</style>
<div class="square4" style="background-color: red;">1</div>
<div class="square4" style="background-color: yellow;">2</div>
<div class="square4" style="background-color: lime;">3</div>
<style type="text/css">
.square5{
border: 1px solid #333;
width: 100px;
height: 100px;
}
</style>
<div class="square5" style="background-color: red;">1</div>
<div class="square5" style="background-color: yellow; visibility:hidden;">2</div>
<div class="square5" style="background-color: lime;">3</div>