Answer the question
In order to leave comments, you need to log in
How to make correct valid metadata?
There are old tabular sites for online stores with IE7 support and the task is to make the site more valid.
sites are built on Yii
in the header
<!DOCTYPE html>
<html lang="ru">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="language" content="ru"/>
<meta charset="кодировка">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>.
<meta name="language" content="ru"/>
can not find why it is used at all. Answer the question
In order to leave comments, you need to log in
No need to reinvent the wheel:
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
ru-RU maybe? used to set the language of the document.
charset="" is html5
and you shouldn't worry too much about validity at all. try to check the validity of google.com or yandex.ru - you may be very surprised.
Excuse me, but why do you need valid sites? Validation is piskomerstvo only among the front-end, if the site is displayed the same everywhere, well, or with reasonable degradation on lower versions of browsers, then what's the difference passes validation or not?
If from the position of SEO, then there are generally accepted rules / good advice on markup, but I have not heard that a non-valid site would be artificially underestimated in search engines.
I went through several top sites from Yandex, none of them pass validation.
As <meta name="language" content="ru"/>
for your html5 declaration, it means that your language is already specified in <html lang="ru">
Why again?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question