Помогите пожалуйста нубу))
Страницы: 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)
Новые темыОбъявленияСвободное общение
18:13 Покупные ссылки 
15:12 Ночной бар в Паттайе: как случайная встреча с "тайкой" и её кадыком перевернула мой взгляд на продвижение сайта в Google 2026 
15:11 Стоит ли добавлять сайт в Rambler топ 100? 
15:10 Rotapost прикрыли! Чем пользоваться? 
15:01 Webvork - международная товарная СРА сеть с сертифицированными офферами на Европу. 
07:24 3snet - гемблинг, беттинг, форекс, бинарные опционы, майнинг 
12:05 DLE не создает бэкап с админки сайта, как быть? 
08:03 PlayPay.biz - Лутбоксы с товарами, играми 
04:22 Просто $0.04/IP 9PROXY.COM Резидентные прокси Неограниченная пропускная способность Уникальная политика замены Без чёрного списка 
23:08 Bankomat001 - Сервис обмена электронных валют 
22:42 nexgen24.io - криптовалюта и фиат в одном месте 
19:58 продажа аккаунтов под яндекс сплит, вб 
15:08 - Вечные ссылки с трастовых сайтов 2024 проверен FastTrust 
13:34 PonyBit.ru - обменный пункт PonyBit.ru (Понибит.ру) 
15:07 Добро пожаловать в цифровой мир... 
22:12 BYTIK.shop – сервис по продвижению в популярных социальных сетях​ 
10:10 накрутка трафика в SimilarWeb 
16:50 Компьютерная мышь 
11:32 Про мясо 
22:11 С юмором по жизни! 
23:03 Точные прогнозы на футбол