Сверстаю сайт сам! Мои трудности в вёрстке.

Статус
Закрыто для дальнейших ответов.

Felix

Друг форума
Регистрация
20.06.2009
Сообщения
1 097
Код:
P {
    line-height: 1.5;
}
Для ИЕ6 и 7 не работает. Как починить ?
 

Felix

Друг форума
Регистрация
20.06.2009
Сообщения
1 097
Так начались проблемы с валидатором вот коды.
Line 295, Column 42: element "A" undefined
<li class="podmenu"><A href="/12/12_17/">Теннис</A></li>

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).
Line 280, Column 268: character "<" is the first character of a delimiter but occurred as data
…ноуборд и лыжи<br />Теннис<br />Футбол<br />Хоккей<br />Прочие">Спортивные</A>…


This message may appear in several cases:
You tried to include the "<" character in your page: you should escape it as "&lt;"
You used an unescaped ampersand "&": this may be valid in some contexts, but it is recommended to use "&amp;", which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Line 244, Column 39: element "A" undefined
<li class="podmenu"><A href="/7/7_1/">Выход из комнаты</A></li>

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).
Я не понимаю что ему не нравится ?
Как вылечить ?
 

blackcot

Well-Known Member
Регистрация
10.09.2009
Сообщения
439
Теги должны быть в нижнем регистре.
…ноуборд и лыжи<br />Теннис<br />Футбол<br />Хоккей<br />Прочие">Спортивные</A>…
Здесь лишний > после 'Прочие"'
 

tigra60

Спасатель
Регистрация
10.12.2009
Сообщения
1 990
Если в указанном месте требуется значек закрывающей угловой скобки, используйте &gt;:
Код:
Прочие&gt;Спортивные
И кавычки там, наверно, лишние.
Удачи!
 

Felix

Друг форума
Регистрация
20.06.2009
Сообщения
1 097
он не лишний
вот вся строчка

Код:
<li class="stylemenu"><A href="/12/" title="Теннис<br />Футбол<br />Хоккей<br />Прочие">Спортивные</A></li>
По воводу нижних регистров не понял :unsure:
 

tigra60

Спасатель
Регистрация
10.12.2009
Сообщения
1 990
Так:
Код:
title="Теннис<br />Футбол<br />Хоккей<br />Прочие"
нельзя делать.
Да, к тому же, это и не работает. Нет способа добавить в title перенос строки!!!
 

trueW3C

Поклонник Yii
Регистрация
04.03.2009
Сообщения
847
Код:
<A
XHTML: все теги строчными
 

Felix

Друг форума
Регистрация
20.06.2009
Сообщения
1 097
Перенос строки работает! Глянь у меня на сайте в меню.
Неужели нет другова спопоба сделать перенос в title?


trueW3C, спасибо сделал маленькими тег а помогло.

и что не так тут ?

Line 345, Column 21: document type does not allow element "li" here; missing one of "ul", "ol", "menu", "dir" start-tag
<li class="logdot"><a href="http://test1.ru/statistics.html">Статистика</a></…

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

tigra60

Спасатель
Регистрация
10.12.2009
Сообщения
1 990
Перенос строки работает! Глянь у меня на сайте в меню.
Да, действительно работает. А как это сделано???

А что вокруг этого: <li class="logdot"><a href="http://test1.ru/statistics.html">Статистика</a></… ?

Без исходника очень тяжело анализировать ошибки валидации!
 
Статус
Закрыто для дальнейших ответов.
Верх Низ