Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Problem z walidacją
#1
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>
Odpowiedz
#2
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.
Odpowiedz
#3
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 ">".
Odpowiedz
#4
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.
Odpowiedz
#5
Zrobione, waliduje się - dziękuję za pomoc.

Tylko teraz jeszcze jak zrobić punktory?
Odpowiedz
#6
CO TO SĄ PUNKTORY? To coś w stylu ludzi Jaszczurów?
Odpowiedz
#7
To są typy wykazu stylu:

disc
circle
square
Odpowiedz
#8
http://www.w3schools.com/cssref/pr_list-style-type.asp
Odpowiedz


Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  walidacja formularza hieroshima 2 2,104 02-08-2012, 13:49
Ostatni post: hieroshima
  Ponowny problem z walidacją klucha25 12 7,651 12-12-2011, 03:17
Ostatni post: Kartofelek
  Walidacja html Jozeph 11 8,076 11-11-2010, 18:24
Ostatni post: Pedro84
  walidacja... problem z linkiem yozz84 5 3,628 22-02-2010, 21:44
Ostatni post: yozz84
  [XHTML 1.0] walidacja a znaczniki <ol> <li> <ul> Motaba 2 2,577 11-12-2009, 13:49
Ostatni post: Motaba

Skocz do:


Użytkownicy przeglądający ten wątek: 2 gości
Sponsorzy i przyjaciele
SeoHost.pl