CSS
参考了以下资料:
在线调试:
开始
如何在HTML中插入CSS
1,直接写
<html>
    <head>
        <style>
            /* 这里是CSS */
            h1 {
                color: black;
            }
            p {
                color: red;
            }
        </style>
    </head>
    <body>
        <h1>
            这是一个标题
        </h1>
        <p>
            这是一段话。
        </p>
    </body>
</html>
2,链接到外部文件(推荐)
index.html
<link rel="stylesheet" type="text/css" href="styles.css">
styles.css
h1 {
    color: black;
}
p {
    color: red;
}