Forum Webmastera, HTML, CSS, PHP, MySQL, Hosting, Domeny - Forum dla Webmasterów
Problem z walidacją - Wersja do druku

+- Forum Webmastera, HTML, CSS, PHP, MySQL, Hosting, Domeny - Forum dla Webmasterów (https://www.webmastertalk.pl)
+-- Dział: Technologie internetowe - tworzenie stron WWW (https://www.webmastertalk.pl/forum-technologie-internetowe-tworzenie-stron-www)
+--- Dział: xHTML, CSS, JavaScript (https://www.webmastertalk.pl/forum-xhtml-css-javascript)
+--- Wątek: Problem z walidacją (/thread-problem-z-walidacja)



Problem z walidacją - klucha25 - 26-11-2011

Mógłby mi ktoś powiedzieć w czym tkwi problem podczas walidacji?
I jeśli jeszcze można to jak powstawiać punktory?

<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<meta http-equiv="Content-type" content="application/xhtml+xml; charset=iso-8859-2" />
<meta name="Description" content=" [Królestwo Zwierząt] " />
<meta name="Keywords" content=" [Królestwo Zwierząt] " />
<meta name="Author" content=" [ja] " />
<meta name="Generator" content="kED" />

<title> Królestwo Zwierząt</title>

<link rel="stylesheet" href="style2.css" type="text/css" />
</head>
<body>

<h1> Królestwo Zwierząt </h1>

<ol>
<li>Primates NACZELNE</li>
</ol>
<ul>
<li>Simiae MAŁPY WŁAŚCIWE</li>
<ol>
<li>Ceboidea MAŁPY NOWEGO ŚWIATA</li>

<li>Cercopithecoidea</li>

<li>HOMINOIDEA</li>
</ol>

<ul>
<li>PONGIDAE</li>
<ol>
<li>Hylobatinae</li>
<ol>
<li>Hylobates GIBBON (6 gatunków)</li>
<li>Symphalangus SIAMANG (1 gatunek)</li>
</ol>

</ol>
<ol>
<li>Ponginae</li>
<ul>
<li>Pongo ORANGUTAN</li>
<ol>
<li>Pongo pygmaeus</li>
<ul>
<li>P. pygmaeus pygmaeus</li>
<li>P. pygmaeus abelii</li>
</ul>

</ol>

<li>Pan SZYMPANS</li>
<ol>
<li>Pan troglodytes</li>
<ol>
<li>P. troglodytes troglodytes</li>
<li>P. troglodytes schweinfurtnii</li>
<li>P. troglodytes verys</li>
</ol>

<li>Pan paniscus</li>
</ol>

<li>Gorilla GORYL</li>
<ol>
<li>Gorilla gorilla</li>
<ol>
<li>G. Gorilla gorilla</li>
<li>G. gorilla beringei</li>
</ol>

</ol>

</ul>

</ol>


<li>HOMINIDAE</li>

<ol>
<li>Homo CZŁOWIEK</li>
<li>Homo Sapiens</li>

</ol>


</ul>
</ul>
<ol>
<li>Prosimiae MAŁPIATKI, LEMURY, WYRAKI</li>
</ol>
</body>
</html>


RE: Problem z walidacją - artux - 26-11-2011

Na początek:

Kod:
<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">

Potem znaczniki <ol> wewnątrz <ul> - tak nie można.


RE: Problem z walidacją - klucha25 - 26-11-2011

Nie wiem czy wszystkie znaczniki udało mi się usunąć:

<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<meta http-equiv="Content-type" content="application/xhtml+xml; charset=iso-8859-2" />
<meta name="Description" content=" [Królestwo Zwierząt] " />
<meta name="Keywords" content=" [Królestwo Zwierząt] " />
<meta name="Author" content=" [ja] " />
<meta name="Generator" content="kED" />

<title> Królestwo Zwierząt</title>

<link rel="stylesheet" href="style2.css" type="text/css" />
</head>
<body>

<h1> Królestwo Zwierząt </h1>

<ol>
<li>Primates NACZELNE</li>
</ol>
<ul>
<li>Simiae MAŁPY WŁAŚCIWE</li>
<ol>
<li>Ceboidea MAŁPY NOWEGO ŚWIATA</li>

<li>Cercopithecoidea</li>

<li>HOMINOIDEA</li>
</ol>

<ul>
<li>PONGIDAE</li>
<ol>
<li>Hylobatinae</li>
<ol>
<li>Hylobates GIBBON (6 gatunków)</li>
<li>Symphalangus SIAMANG (1 gatunek)</li>
</ol>

</ol>
<ol>
<li>Ponginae</li>

<li>Pongo ORANGUTAN</li>
<ol>
<li>Pongo pygmaeus</li>

<li>P. pygmaeus pygmaeus</li>
<li>P. pygmaeus abelii</li>


</ol>

<li>Pan SZYMPANS</li>
<ol>
<li>Pan troglodytes</li>
<ol>
<li>P. troglodytes troglodytes</li>
<li>P. troglodytes schweinfurtnii</li>
<li>P. troglodytes verys</li>
</ol>

<li>Pan paniscus</li>
</ol>

<li>Gorilla GORYL</li>
<ol>
<li>Gorilla gorilla</li>
<ol>
<li>G. Gorilla gorilla</li>
<li>G. gorilla beringei</li>
</ol>

</ol>



</ol>


<li>HOMINIDAE</li>

<ol>
<li>Homo CZŁOWIEK</li>
<li>Homo Sapiens</li>

</ol>




<ol>
<li>Prosimiae MAŁPIATKI, LEMURY, WYRAKI</li>
</ol>
</body>
</html>








Dodam jeszcze jakie błędy pojawiają się:

1. Line 24, Column 5: document type does not allow element "ol" here; assuming missing "li" start-tag
<ol>
2. Line 34, Column 5: document type does not allow element "ol" here; assuming missing "li" start-tag
<ol>
3. Error Line 36, Column 6: document type does not allow element "ol" here; assuming missing "li" start-tag
<ol>
4. Line 41, Column 7: end tag for "li" omitted, but OMITTAG NO was specified
</ol>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
5. Line 46, Column 6: document type does not allow element "ol" here; assuming missing "li" start-tag
<ol>
6. Line 55, Column 6: document type does not allow element "li" here; missing one of "ul", "ol" start-tag
<li>Pan SZYMPANS</li>
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>").
7. Line 58, Column 7: document type does not allow element "ol" here; assuming missing "li" start-tag
<ol>
8. Line 64, Column 7: document type does not allow element "li" here; missing one of "ul", "ol" start-tag
<li>Pan paniscus</li>
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>").
9. Line 65, Column 9: end tag for "li" omitted, but OMITTAG NO was specified
</ol>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
10. Line 67, Column 6: document type does not allow element "li" here; missing one of "ul", "ol" start-tag
<li>Gorilla GORYL</li>
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>").
11. Line 70, Column 7: document type does not allow element "ol" here; assuming missing "li" start-tag
<ol>
12. Line 75, Column 9: end tag for "li" omitted, but OMITTAG NO was specified
</ol>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">"
13. Line 79, Column 5: end tag for "li" omitted, but OMITTAG NO was specified
</ol>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
14. Line 82, Column 8: document type does not allow element "li" here; missing one of "ul", "ol" start-tag
<li>HOMINIDAE</li>
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>").
15. Line 96, Column 7: end tag for "li" omitted, but OMITTAG NO was specified
</body>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
16. Line 96, Column 7: end tag for "ul" omitted, but OMITTAG NO was specified
</body>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
17. Line 96, Column 7: end tag for "li" omitted, but OMITTAG NO was specified
</body>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
18. Line 96, Column 7: end tag for "ul" omitted, but OMITTAG NO was specified
</body>
You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".



RE: Problem z walidacją - Kartofelek - 27-11-2011

Jak wstawiasz OL między LI to się nie dziw że ci błędami rzuca.

Konstrukcja UL:
Kod:
<ul>
      <li>
            coś w li
      </li>
      <li>
            coś w li
      </li>
</ul>

Między LI nie może być niczego.


RE: Problem z walidacją - klucha25 - 27-11-2011

Zrobione, waliduje się - dziękuję za pomoc.

Tylko teraz jeszcze jak zrobić punktory?


RE: Problem z walidacją - Kartofelek - 27-11-2011

CO TO SĄ PUNKTORY? To coś w stylu ludzi Jaszczurów?


RE: Problem z walidacją - klucha25 - 27-11-2011

To są typy wykazu stylu:

disc
circle
square



RE: Problem z walidacją - Kartofelek - 27-11-2011

http://www.w3schools.com/cssref/pr_list-style-type.asp