Помогите пожалуйста нубу))
Страницы: 1
Помогите пожалуйста нубу)), Помогите с ошибками Валидатора
Помогите с ошибками Валидатора пожалуйста

1
Цитата
unclosed start-tag requires SHORTTAG YES
document.write('<div id="dhtmltooltip"</div>')


2
Цитата
document type does not allow element "div" here
document.write('<div id="dhtmltooltip"</div>')
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).

Цитата
required attribute "alt" not specified
…ite('<іmg id="dhtmlpointer" src="/templates/S-Templates/images/tiparrow.png">')
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>.
Изменено: Vova-Star - 28 Января 2012 01:08
Ошибка в теге див

<div id="dhtmltooltip"></div>
Есть ТИЦ? Продавай ссылки в GGL!
Есть трафик? Заработай на нем ЗДЕСЬ!
Цитата
Vova-Star пишет:
Помогите с ошибками Валидатора пожалуйста


1. <div id="dhtmltooltip"></div>
2. <іmg id="dhtmlpointer" src="/templates/S-Templates/images/tiparrow.png" alt="kartinko" />
Спасибо Всем
А у меня DOCTYPE XHTML
Что здесь не так ?

Цитата
Line 23, Column 41: document type does not allow element "div" here
document.write('<div id="dhtmltooltip"></div>')

The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
Цитата
Vova-Star пишет:
А у меня DOCTYPE XHTML
Что здесь не так ?


поменяйте на
Код
<!DOCTYPE html>
А если у меня весь шаблон на XHTML и я его поменяю на HTML то страница не станет криво ?
Изменено: Vova-Star - 28 Января 2012 16:01
Цитата
Vova-Star пишет:
А если у меня весь шаблон на XHTML и я его поменяю на HTML то страница не станет криво ?


нет...а что мешает попробовать?
Боюсь что то намутить smile:wall:
Цитата
Vova-Star пишет:
Боюсь что то намутить


сохрани старый файл на всякий, и "мути" smile:D ...какой движок?
Dle он как раз по мне smile:D
Цитата
Vova-Star пишет:
Dle он как раз по мне


две первые строчки замените (с дле не знаком, но предполагаю ,что файл header.php) на
Код
<!DOCTYPE html>
<html>

шаблон от этого точно не разъедется, а вот все ошибки с незакрытыми слешами исчезнут...
Страницы: 1
Похожие темы:
Читают тему (гостей: 1, пользователей: 0, из них скрытых: 0)
Новые темыОбъявленияСвободное общение
19:29 Dao.AD: Монетизация и покупка Push/Pops/Inpage и Video трафика! 
17:29 Как продвигать сайт с неуникальным контентом 
14:50 Индексация страниц 
12:36 У кого новостник, дайте пару советов плиз 
13:53 AviTool - мощный инструмент для автоматизации работы с Avito 
17:01 Absence в Армении 
23:19 Ребята подскажите какими сервисами и прогами вы пользуетесь для SEO продвижения? 
04:07 Просто $0.04/IP 9PROXY.COM Резидентные прокси Неограниченная пропускная способность Уникальная политика замены Без чёрного списка 
21:42 BestX24 - быстрый и безопасный обменник криптовалют и электронных денежных средств 
18:41 Взлом пароля Mail.ru почты, взломать пароль Mail, взлом аккаунта Yandex 
16:19 TETChange-Обменник криптовалют 
15:04 JustProxy.Biz - Резидентные прокси без ограничения по трафику 
12:41 Affiliate Top - партнерская программа нового уровня 
11:38 Адалт сайты и сетки PBN на DLE 
23:07 Ну что, кто куда деваете свои сайты? 
19:30 Добро пожаловать в цифровой мир... 
19:42 Топ-5 способов использовать мобильные прокси для бизнеса: подробный обзор 
22:08 Накрутка поисковых подсказок 
05:04 Точные прогнозы на футбол 
14:01 Union Pharm - топовая фарма-партнерка для профессионалов! 
10:59 Ням-ням! - 8 деликатесов, которые когда-то ели только бедные люди