Jump to content
  • 0

Валидатор


desagr
 Share

Question

Решил почекать свою визитку валидатором. Ужаснулся.

# Error Line 31, Column 386: element "font" undefined. Did you mean "font" or "basefont"?
…rget="_blank">[<font color=#e90042">IPB</font>oard]</a> <a href="http://vb.a

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).

В основном все ошибки ( :( ) такого смысла.

Result: 43 Errors :(

Помогите исправить, буду премного благодарен.

Edited by desagr
Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Помогаю, вставьте текст ошибки, если сами английского не знаете, в любой онлайн переводчик, там все настолько четка описывают, что если Вам начать объяснять, насмех потом поднимут.

Link to comment
Share on other sites

  • 0
Решил почекать свою визитку валидатором. Ужаснулся.

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).

В основном все ошибки ( :( ) такого смысла.

Result: 43 Errors :(

Помогите исправить, буду премного благодарен.

Если я не ошибаюсь то валидатор ругается на тег FONT/ Этот тег давно уже не используется.

Пробуй прописывать все эффекты (цвет, фон и т.д.) через CSS

Edited by 3d_max_9
Link to comment
Share on other sites

  • 0

Туева куча ошибок ушла, спасибо.

Остались несколько..

# Error Line 27, Column 116: Attribute "target" exists, but can not be used for this element.

…d><a href="http://*******.ru" target="_blank"><span class="letter">a.</span>aq

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.

# Error Line 30, Column 6: document type does not allow element "br" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

<br /><br /><br />

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

# Error Line 31, Column 22: document type does not allow element "span" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag

<span class="centerl"><a href="http://blog.*******.ru" target="_blank">[<span cl

The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Фуф, осталось всего 5.

Edited by desagr
Link to comment
Share on other sites

  • 0
Туева куча ошибок ушла, спасибо.

Остались несколько..

Фуф, осталось всего 5.

Помогаю, вставьте текст ошибки, если сами английского не знаете, в любой онлайн переводчик, там все настолько четка описывают,

Вот кстати неплохой переводчик

Link to comment
Share on other sites

  • 0

Как надо верстать, чтобы было валидно.

Лично я когда верстаю всегда держу открытым htmlbook.ru

И часто заглядываю в справку по каким-нибудь свойствам или меткам, не смотря на то, что знаю как и что используется, всё равно порой посматриваю и частенько, бывает дописываю недостающий атрибут или что-то ещё.

Link to comment
Share on other sites

  • 0
Как надо верстать, чтобы было валидно.

Лично я когда верстаю всегда держу открытым htmlbook.ru

И часто заглядываю в справку по каким-нибудь свойствам или меткам, не смотря на то, что знаю как и что используется, всё равно порой посматриваю и частенько, бывает дописываю недостающий атрибут или что-то ещё.

Не только вы =)

Edited by desagr
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy