@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Document</title>
+ <!-- 外部样式表 -->
+ <link rel="stylesheet" href="./index.css">
+ <style>
+ /* 内部样式表 */
+ div {
+ width: 200px;
+ height: 200px;
+ background: #00f;
+ }
+ </style>
+ <!--
+ link 链接外部表
+ rel 关系
+ stylesheet 样式表
+ href 路径
+ -->
+</head>
+<body>
+ <!-- 行内样式/内联样式 -->
+ <!-- <div style="width: 200px;height: 200px;background-color: red;"></div> -->
+ <div></div>
+ 同标签 下面的样式会覆盖上面的样式
+ 行内 > 内部 > 外部
+</body>
+</html>
@@ -0,0 +1,5 @@
+div {
+ background: #ff0;
+}