Ошибки в html

M4
На сайте с 06.01.2013
Offline
8
1287

Доброго времени:)

Валидатор выдает много непонятных ошибок, помогите пожалуйста решить их :gm:

1-

Line 66, Column 21: an attribute value specification must be an attribute value literal unless SHORTTAG YES is specified
<li><a href="/" rel=sidebar title="сайт!" onclick="window.ext…

это всего лишь скрипт который добавляет в закладки сайт

2-

Line 68, Column 71: required attribute "action" not specified
<form id="search" method="post" onsubmit="javascript: showBusyLayer()">



The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

3-

Line 391, Column 35: there is no attribute "class"
<div class="or"> <TABLE class="nizz" >



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 <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.
Line 391, Column 42: element "TABLE" undefined
<div class="or"> <TABLE class="nizz" >



You have used the element named above in your document, but the document type you are using does not define an element of that name. 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 "Frameset" document type to get the "<frameset>" element),
by using vendor proprietary extensions such as "<spacer>" or "<marquee>" (this is usually fixed by using CSS to achieve the desired effect instead).
by using upper-case tags in XHTML (in XHTML attributes and elements must be all lower-case).
bay_ebook
На сайте с 28.05.2010
Offline
111
#1

1)

rel=sidebar - заменить на rel="sidebar"

2)

<form id="search" method="post" onsubmit="javascript: showBusyLayer()" action="javascript:void(0);">

3)

<TABLE class="nizz" > на <table class="nizz" >

И если не знаете английский - переводчик есть

Нужен прогер на php+mysql+понимание чужего кода? (/ru/forum/540660) Вам сюда PHP-шаман (http://php-shaman.pw/)
K5
На сайте с 21.07.2010
Offline
209
#2
bay_ebook:

3)
<TABLE class="nizz" > на <table class="nizz" >

И если не знаете английский - переводчик есть

вообще то если использовать переводчик, то написано: для table нельзя использовать атрибут class ;)

аська 45два48499два записки на работе (http://memoryhigh.ru) помогу с сайтом, удалю вирусы, настрою впс -> отзывы ТУТ (/ru/forum/836248) и ТАМ (http://www.maultalk.com/topic140187.html) !!!всегда проверяйте данные людей, которые сами пишут вам в аську или скайп!!!
TaediumVitae
На сайте с 22.09.2011
Offline
41
#3
kgtu5:
для table нельзя использовать атрибут class

Вообще-то написано "атрибута "class" не существует".

А еще ниже написано "проверьте правильность написания и case", где case - прописные/строчные буквы.

bay_ebook
На сайте с 28.05.2010
Offline
111
#4
kgtu5:
вообще то если использовать переводчик, то написано: для table нельзя использовать атрибут class ;)

Вообще-то там написано, что TABLE не определен (так как в xhtml все теги прописываются строчными буквами), а соответственно - и class для такого тега не возможно присвоить.

M4
На сайте с 06.01.2013
Offline
8
#5
<form id="search" method="post" onsubmit="javascript: showBusyLayer()" action="javascript:void(0);">

при этом теге поиск не работает

bay_ebook
На сайте с 28.05.2010
Offline
111
#6
manual4:
при этом теге поиск не работает

Ну так...

action="javascript:void(0);" - вместо яваскрипта туда нужно урл текущей страницы пихать :) (эх, думал догадаются)

M4
На сайте с 06.01.2013
Offline
8
#7

Спасибо разобрался во всем остается лишь одна ошибка - это тег DOCTYPE

он у меня такой -

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

выдает следующую ошибку

Mismatch between Public and System identifiers in the DOCTYPE declaration

This document uses an inconsistent DOCTYPE declaration. The Public Identifier -//W3C//DTD XHTML 1.0 Transitional//EN declares the XHTML 1.0 Transitional document type, but the associated System Identifier http://w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd does not match this document type.

The recommended System Identifier for XHTML 1.0 Transitional is http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd.

The safest way to use a correct DOCTYPE declaration is to copy and paste one from the recommended list and avoid editing that part of your markup by hand.
WebAlt
На сайте с 02.12.2007
Offline
266
#8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий