w3c validation - Cannot get my html pass W3 Validator, what is wrong? -


i trying validate 1 page, validator gives me ridiculous errors.

for example attribute name not allowed on element meta @ point.

i using <meta name="description"

https://validator.w3.org/nu/?showsource=yes&doc=http%3a%2f%2fwww.ayurvedabansko.bg%2f

the client wants code validated, crazy...

anyone ideas?

i fixed issues, , validating html source returns 2 info messages only.

you main problem seems closing div tag without opening match.

search <a href="#" class="scrolltotop"></a> , remove closing div tag right afterwards.

here's list of fixes applied:

  • closing div tag without opening match (as mentioned)
  • <hgroup> being outdated/deprecated (try replacing div or p (besides div not support nesting hgroup tags (among others) inside it)
  • make <title> tag 1st child in head element

update: seems need define charset first thing before proceeding inside head tag.

also, got rid of http-equiv="content-type" content="text/html". needed ?

making <head> like

<meta charset="utf-8" /> <title>Аюрведа клиник - лечение, пречистване, подмладяване.</title>     <meta name="description" content="Аюрведа клиник Лъки Банско е първият в България индийски център, съчетаващ лечение по системата Аюрведа с пълно пречистване на организма, разкрасяване и подмладяване по методите Пурвакарма и Панчакарма."/>     <meta name="keywords" content="Аюрведа клиник Лъки Банско е първият в България индийски център, съчетаващ лечение по системата Аюрведа с пълно пречистване на организма, разкрасяване и подмладяване по методите Пурвакарма и Панчакарма." />      <meta name="robots" content="index, follow" />     <meta name="revisit-after" content="3 days" />     <meta name="viewport" content="width=device-width, initial-scale=1"/>     <base href="http://www.ayurvedabansko.bg/" />         <link rel="canonical" href="http://www.ayurvedabansko.bg/" />     <link rel="alternate" href="http://www.ayurvedabansko.bg/" hreflang="bg" />     <link rel="alternate" href="http://www.ayurvedabansko.bg/en/" hreflang="en" />     <link rel="stylesheet" type="text/css" href="/css/default.css" />     <link rel="stylesheet" type="text/css" href="/css/jquery.fancybox.css" />     <link rel="stylesheet" type="text/css" href="/css/jquery.datepick.css" />     <link rel="icon" href="/images/favicon.png" type="image/x-icon" /> </head> 

will make pass validation.


update 2: credits reeno, answer. enter image description here


Comments

Popular posts from this blog

php - Admin SDK -- get information about the group -

dns - How To Use Custom Nameserver On Free Cloudflare? -

Python Error - TypeError: input expected at most 1 arguments, got 3 -