Problem z walidacją strony

0

Witam, proszę o pomoc z poradzeniem sobie z następującymi błędami;

Error Line 3, Column 13: there is no attribute "XMLNS"

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">

Line 3, Column 53: there is no attribute "XML:LANG"

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">

Error Line 5, Column 70: character data is not allowed here
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8" />

Line 11, Column 128: document type does not allow element "LINK" here
…//fonts.googleapis.com/css?family=Syncopate:regular,italic,bold,bolditalic" />

Error Line 12, Column 48: document type does not allow element "LINK" here

<link rel="index" href="http://www.strona.pl/" />

Line 13, Column 52: document type does not allow element "LINK" here

<link rel="canonical" href="http://www.strona.pl/" />

Line 14, Column 93: document type does not allow element "META" here
…gle-site-verification" content="**************************************" />

Line 26, Column 7: end tag for element "HEAD" which is not open

</head>

Line 27, Column 6: document type does not allow element "BODY" here

<body>

Line 56, Column 25: there is no attribute "ANNOTATION"
<g:plusone annotation="inline"></g:plusone>

Line 56, Column 33: element "G:PLUSONE" undefined
<g:plusone annotation="inline"></g:plusone>

Proszę o pomoc, nie potrafię sobie z tym poradzić!

1

Może wystarczy je po prostu przeczytać (najlepiej z użyciem słownika)?

0

A według jakiego jeżyka chcesz swój kod zwalidować? Jest tam opcja - być może nie nastawiłeś jej.

1
STaN007 napisał(a)

Error Line 3, Column 13: there is no attribute "XMLNS"

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">

Tutaj nie powinno być atrybutu XMLNS.

STaN007 napisał(a)

Line 3, Column 53: there is no attribute "XML:LANG"

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">

Tutaj nie powinno być atrybutu XML:LANG.

STaN007 napisał(a)

Error Line 5, Column 70: character data is not allowed here
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8" />

Treść nie jest w tym miejscu dozwolona.

STaN007 napisał(a)

Line 11, Column 128: document type does not allow element "LINK" here
…//fonts.googleapis.com/css?family=Syncopate:regular,italic,bold,bolditalic" />

Typ dokumentu nie pozwala na element LINK w tym miejscu.

STaN007 napisał(a)

Error Line 12, Column 48: document type does not allow element "LINK" here

<link rel="index" href="http://www.strona.pl/" />

Typ dokumentu nie pozwala na element LINK w tym miejscu.

STaN007 napisał(a)

Line 13, Column 52: document type does not allow element "LINK" here

<link rel="canonical" href="http://www.strona.pl/" />

Typ dokumentu nie pozwala na element LINK w tym miejscu.

STaN007 napisał(a)

Line 14, Column 93: document type does not allow element "META" here
…gle-site-verification" content="**************************************" />

Typ dokumentu nie zezwala na element META w tym miejscu.

STaN007 napisał(a)

Line 26, Column 7: end tag for element "HEAD" which is not open

</head>

Zamknięcie elementu HEAD, który nie został wcześniej otwarty.

STaN007 napisał(a)

Line 27, Column 6: document type does not allow element "BODY" here

<body>

Typ dokumentu nie pozwala na znacznik BODY w tym miejscu.

STaN007 napisał(a)

Line 56, Column 25: there is no attribute "ANNOTATION"
<g:plusone annotation="inline"></g:plusone>

Tutaj nie powinno być atrybutu ANNOTATION

STaN007 napisał(a)

Line 56, Column 33: element "G:PLUSONE" undefined
<g:plusone annotation="inline"></g:plusone>

Element G:PLUSONE jest niezdefiniowany.

0

rozumiem błędy, ale nie potrafię rozwiązać!

0

mieliście rację błąd w deklaracji dokumentu...
teraz mam inny problem do rozwiązania z walidacją
jak się pozbyć następujących błędów

Error Line 56, Column 25: there is no attribute "annotation"
<g:plusone annotation="inline"></g:plusone>

Line 56, Column 33: element "g:plusone" undefined
<g:plusone annotation="inline"></g:plusone> - nie mam pomysłu

Error Line 81, Column 91: there is no attribute "target"
…p:*www.link.pl" target="_blank">http:*www.link.p… - nie posiada atrybutu target...to jak mam to obejść?wcześniej taki błąd nie wyskakiwał...

Line 101, Column 92: document type does not allow element "a" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
…e; font-size: 3px;" href="http://www.link.pl" target="_blank">link</a> - brakuje jakoś elementu, ale nie rozumiem dlaczego

0

Brak elementu g:plusone - nie masz dodanego odpowiedniego xmlns w nagłówku dokumentu HTML zapewne. Albo walidator tego nie rozumie.

Brak atrybutu target - tak ma być. Element target wyleciał ze specyfikacji.

0
<!DOCTYPE html PUBLIC "-*W3C*DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">

taki mam nagłówek!
co z tym plusone?

a jeszcze ten błąd ze znacznikiem o co chodzi?

1

<g:plusone> zmien na <div class="g-plusone"></div>, najlepiej w ogóle wygeneruj sobie button i zaznacz, żeby był HTML5 valid: http://www.google.com/webmasters/+1/button/

Nie wiem gdzie masz ten element <a> bo nie podałeś źródła, w każdym razie nie powinno go tam być (podejrzewam, że ten element jest bezpośrednim dzieckiem <body> albo coś w tym stylu) - musisz pokazać coś kodu.

0

optymalnie rozwiązanie,
tak elementy <a> były bezpośrednio w body, nie zauważyłem wcześniej!@
Już wszystko w porządku!
pozdrawiam dziękuje

1 użytkowników online, w tym zalogowanych: 0, gości: 1