我使用laravel建立了一个简单的网站,但我的验证有问题。我收到错误
实例中不允许使用“DOCTYPE”声明
</div><!doctype HTML>
和
文档类型不允许元素“HTML”在这里
<html lang="pl">
这是我的代码主视图
<!doctype HTML>
<html lang="pl">
<head>
<meta charset="utf-8">
<title> @yield('title') </title>
<meta name="robots" content="index,follow" />
<!-- Foundation -->
<script src="/js/foundation.js"></script>
<link href="/css/foundation.css" rel="stylesheet" type="text/css">
<link href="/css/normalize.css" rel="stylesheet" type="text/css">
<link href="/css/style.css" rel="stylesheet" type="text/css">
<link href='https://fonts.googleapis.com/css?family=Roboto:400,300,100,500' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Dosis:400,700,600,500' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Lato:400,300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="/css/animate.css" type="text/css">
<script src="/js/jquery.viewportchecker"></script>
</head>
<body>
@yield('content')
@include('nav.footer')
</body>
</html>
答案 0 :(得分:-1)
在声明DOCTYPE
时,您应该使用大写字母,否则最终会收到错误:
<!DOCTYPE html>