Answer the question
In order to leave comments, you need to log in
Why is the validator throwing an error?
I'm taking a course on htmlacademy, I'm trying to send the project for protection, but it doesn't pass the automatic validator, and it gives errors that don't exist.
PS mentors no longer help.
1. Writes that the encoding is not specified, although it is specified both on the page and in the atom in which I am writing. Everywhere utf-8.
It also shows that this tag is not closed. I tried to write it like this, but it still writes that it is not closed and another additional error for this character.
Also writes Bad element name “meta-charset="utf-8"”: Code point “U+003D” is not allowed
<!DOCTYPE html>
<html>
<head>
<meta-charset="utf-8">
<title>Гостиницы</title>
<link href="css/normalize.css" rel="stylesheet">
<link rel="stylesheet" href="./css/index-css.css" type="text/css"/>
<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700&subset=cyrillic" rel="stylesheet">
</head>
<body>
Answer the question
In order to leave comments, you need to log in
In this form, the W3C validator did not give a single error
PS do not forget to close tags, even for styles and scripts, this is a good practice
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Гостиницы</title>
<link href="css/normalize.css" rel="stylesheet" />
<link rel="stylesheet" href="./css/index-css.css" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=PT+Sans:400,700&subset=cyrillic" rel="stylesheet" />
</head>
<body>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question