|
|
|
|
<ul>
<li>
<a href="http:#"><h3>Это заголовок</h3>
<em><pre>
Весь этот блок --ссылка(конец первой строчки)
Вторая строчка текста
Третья строчка текста »</pre>
</em></a>
</li>
</ul>
|
Валидатор ругается ,можно ли сделать валидно.. | |
|
|
|
|
|
|
|
для: serjinio
(11.02.2009 в 12:34)
| | конешно можно. посмотреть на что ругается валидатор и переделать ту часть | |
|
|
|
|
|
|
|
для: AlexSol
(11.02.2009 в 12:48)
| | Ругается на то что вставлено в тег а .....
Tidy: missing </aaa> before <bbb>
[edit]
Cause:
A closing tag </aaa> is missing before the opening of another tag <bbb>. This is probably due to a implicit close of the <aaa> tag due to the opening of the <bbb> tag.
[edit]
Example:
There are 2 types of tags in the body of a HTML file, inline and block tags. In the following sample, the <font> tag is an inline tag defined as containing only inline tags. But the <p> tag is a block tag. So, - a <p> tag can not be contained in a <font> tag. - when seeing a <p> tag the font tag is implicitely closed.
Good <font size=2><p>abc</p></font>
Good <p><font size="2">abc</font></p>
Good <p style="font-size: 80%">abc</p>
Good <div style="font-size=80%"><p>abc</p></div>
A <font> tag should be contained in a <p> tag and not the opposite. Also, a better way to define the graphical look of a HTML page is to use Cascaded Style Sheet and use HTML only for the content.
[edit]
Solution:
Move inline tags into block elements. | |
|
|
|