層疊樣式表
頁面的表現
外部樣式表
<head>
<link rel="stylesheet" href="hase.css">
</head>
內部樣式表
<head>
<style>
body{background-color:red;}
p{margin-left:20px;}
</style>
</head>
內嵌樣式
<p style="color:red;margin-left:20px; ">
this is a paragraph
</p>
層疊樣式表
頁面的表現
外部樣式表
<head>
<link rel="stylesheet" href="hase.css">
</head>
內部樣式表
<head>
<style>
body{background-color:red;}
p{margin-left:20px;}
</style>
</head>
內嵌樣式
<p style="color:red;margin-left:20px; ">
this is a paragraph
</p>