CSS的出现就是为了将HTML的内容与样式分离
CSS的书写方式
selector{
key:value
}
h1{ color: blue; }
<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <link href="resource/css/MyCss.css" type="text/css" rel="stylesheet" /> </head> <body> <h1>应用样式表</h1> </body> </html>