Добро пожаловать! Это — архивная версия форумов на «Хакер.Ru». Она работает в режиме read-only.
 

Проверка сайта на валидность через W3Cа

Пользователи, просматривающие топик: none

Зашли как: Guest
Все форумы >> [Web-дизайн] >> Проверка сайта на валидность через W3Cа
Имя
Сообщение << Старые топики   Новые топики >>
Проверка сайта на валидность через W3Cа - 2009-05-10 21:30:22.180000   
АнтонММФ

Сообщений: 1364
Оценки: 0
Присоединился: 2007-06-11 08:58:50.760000
В общем указанный в теме сервис ругается на разметку странички:

Line 4, Column 63: Attribute "lang" exists, but can not be used for this element. …ns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead). This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information. How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the &lt;embed&gt; element to incorporate flash media in a Web page, see the FAQ item on valid flash.
то есть, как я понимаю, ему не нравится то, что у lang есть значение… но ведь даже данный сервис использует эту штуку, на которую он ругается (можно посмотреть это в исходном коде сгенерированной страницы)…

вот код моей страницы:

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /&gt; &lt;title&gt;заголовок&lt;/title&gt; &lt;link rel="stylesheet" type="text/css" href="style.css" /&gt; &lt;link rel="stylesheet" type="text/css" href="cssverticalmenu.css" /&gt; &lt;script type="text/javascript" src="cssverticalmenu.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;table class="table.index" cellpadding="0" cellspacing="0"&gt; &lt;tr&gt; &lt;td&gt;&lt;/td&gt; &lt;td&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt;
Post #: 1
RE: Проверка сайта на валидность через W3Cа - 2009-05-10 21:38:33.520000   
Cep}|{

Сообщений: 1396
Оценки: 0
Присоединился: 2007-06-26 01:11:51.416666
Забей
Post #: 2
RE: Проверка сайта на валидность через W3Cа - 2009-05-10 22:05:35.030000   
oRb

Сообщений: 4044
Оценки: 597
Присоединился: 2007-03-28 18:45:06.630000
доктайп неправильный стоит.
И причем здесь Веб-программинг?
Post #: 3
RE: Проверка сайта на валидность через W3Cа - 2009-05-10 23:02:09.603333   
zhuk

Сообщений: 2962
Оценки: 10
Присоединился: 2007-02-20 21:00:01.303333

quote:

ORIGINAL: oRb

И причем здесь Веб-программинг?

А причём здесь дизайн? :)
Post #: 4
RE: Проверка сайта на валидность через W3Cа - 2009-05-11 03:07:17.540000   
Actek

Сообщений: 604
Оценки: 0
Присоединился: 2008-02-24 10:24:14.710000
quote:

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;

Сделай так. А вообще валидность верстки это ерунда - я так считаю.
Post #: 5
Страниц:  [1]
Все форумы >> [Web-дизайн] >> Проверка сайта на валидность через W3Cа







Связаться:
Вопросы по сайту / xakep@glc.ru

Предупреждение: использование полученных знаний в противозаконных целях преследуется по закону.