DAY1
案例1 01.CSS的语法.html
<!DOCTYPE html>
<html>
<head>
<meta charset ="utf-8">
<title>Doucment</title>
<style>
p{
color:red;
}
h2{
color:blue;
}
</style>
</head>
<p>CSS从入门到精通</p >
<h2>主讲:hector</h2>
<body>
</body>
</html>
![](https://i-blog.csdnimg.cn/blog_migrate/a5148088679121cee037b0c9efddb08a.png)
案例2 02.CSS应用样式.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
p{
color:red;
}
</style>
<link rel="stylesheet" type="text/css" href="hello.css">
<style>
@import "hello.css";
</style>
</head>
<body>
<p>welcome to css!</p>
<p>欢迎来到css课堂!</p>
<h2 style="color:blue">WEB前端工程师</h2>
<h2>JAVA开发工程师</h2>
<div>嘿嘿</div>
<div>哈哈</div>
</body>
</html>
![](https://i-blog.csdnimg.cn/blog_migrate/3b945f5023271301621a57da31922d4c.png)
案例3 03.CSS基础选择器.html
<!DOCTYPE html>