内联样式 Inline Styles
Source code
<!-- index.html -->
<h1 style="color: #f00;">headline...</h1>
内部样式 Internal Style Sheet
Source code
<!-- index.html -->
<head>
<style>
h1 {
color: #f00;
}
</style>
</head>
<body>
<h1>headline...</h1>
</body>
外部样式 External Style Sheet
Source code
/* style.css */
h1 {
color: #f00;
}
<!-- index.html -->
<head>
<link href="style.css">
</head>
<body>
<h1>headline...</h1>
</body>
pseudo-class
- `link`
- `visited`
- `hover`
- `active`
其他重要的伪类