老雷html/css开发视频教程之head头部
<head>定义关于文档的信息
<title>定义文档标题。
<link>定义文档与外部资源之间的关系
<link rel="stylesheet" href="app.css" />
<link rel="shortcut icon" href="favicon.ico">
<meta>定义关于 HTML 文档的元数据。
<meta charset="utf-8"> 定义字符编码
<meta name="keywords" content="HTML, CSS, XML" /> 关键字,针对搜索引擎
<meta name="description" content="Free Web tutorials on HTML, CSS, XML" /> 描述,针对搜索引擎
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimum-scale=1,maximum-scale=1">
定义文档视口大小
<style> //定义css样式
<style>
.a{color:red;}
</style>
<!DOCTYPE html> <html> <head> <title>网页标题</title> <link rel="stylesheet" href="app.css" /> <link rel="shortcut icon" href="logo.png"> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,minimum-scale=1,maximum-scale=1"> <meta name="keywords" content="网页关键字,针对搜索引擎的" /> <meta name="description" content="网页描述" /> <style> a{color:red;} </style> </head> <body> <a href="https://www.deituicms.com">链接接</a> </body> </html>