2. 如何添加CSS
- Inline
<html style="background: blue">
</html>
- Internal
<html>
<head>
<style>
html {
background: red;
}
</style>
</head>
</html>
- External
<html>
<head>
<link rel="stylesheet" href="./styles.css" />
</head>
</html>
rel="stylesheet"
表示 relationshiphref="./styles.css"
表示 location
// style.css
html {
background: red;
}
- 练习