复制
收藏
提问
简洁
请分析下面的代码,并修正错误<head> <meta charset="utf-8" /> <title>Dashboard</title> <meta name="description" content="Dashboard" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="shortcut icon" href="assets/img/favicon.png" type="image/x-icon"> <!--Basic Styles--> <link href="assets/css/bootstrap.min.css" rel="stylesheet" /> <link id="bootstrap-rtl-link" href="" rel="stylesheet" /> <link href="assets/css/font-awesome.min.css" rel="stylesheet" /> <link href="assets/css/weather-icons.min.css" rel="stylesheet" /> <!--Fonts--> <link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,600,700,300" rel="stylesheet" type="text/css"> <link href='http://fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'> <!--Beyond styles--> <link id="beyond-link" href="assets/css/beyond.min.css" rel="stylesheet" type="text/css" /> <link href="assets/css/demo.min.css" rel="stylesheet" /> <link href="assets/css/typicons.min.css" rel="stylesheet" /> <link href="assets/css/animate.min.css" rel="stylesheet" /> <link id="skin-link" href="" rel="stylesheet" type="text/css" /> <!--Skin Script: Place this script in head to load scripts for skins and rtl support--> <script src="assets/js/skins.min.js"></script> </head>
4周前
全网
文档
学术
百科
知识库
回答简洁模式
深入研究一些
- 代码中存在一个错误:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
应被移除或更正,因为它与<meta charset="utf-8" />
重复指定了字符集,且charset
属性是 HTML5 中推荐使用的方式。1212
修正后的代码
<head>
<meta charset="utf-8" />
<title>Dashboard</title>
<meta name="description" content="Dashboard" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="shortcut icon" href="assets/img/favicon.png" type="image/x-icon">
<!--Basic Styles-->
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
<link id="bootstrap-rtl-link" href="" rel="stylesheet" />
<link href="assets/css/font-awesome.min.css" rel="stylesheet" />
<link href="assets/css/weather-icons.min.css" rel="stylesheet" />
<!--Fonts-->
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,400,600,700,300" rel="stylesheet" type="text/css">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300' rel='stylesheet' type='text/css'>
<!--Beyond styles-->
<link id="beyond-link" href="assets/css/beyond.min.css" rel="stylesheet" type="text/css" />
<link href="assets/css/demo.min.css" rel="stylesheet" />
<link href="assets/css/typicons.min.css" rel="stylesheet" />
<link href="assets/css/animate.min.css" rel="stylesheet" />
<link id="skin-link" href="" rel="stylesheet" type="text/css" />
<!--Skin Script: Place this script in head to load scripts for skins and rtl support-->
<script src="assets/js/skins.min.js"></script>
</head>
你觉得结果怎么样?