Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [html]Jak wstawić <map> zgodne z XHTML 1.0 Strict ?
Bezan
post 12.04.2007, 17:48:17
Post #1





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 8.02.2007

Ostrzeżenie: (0%)
-----


Początek mojego html:

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


a chodzi o niezgodność ze standardem tego fragmentu:

  1. <map id="Map1">
  2. <area shape="rect" coords="12,168,117,180" href="link1.html" alt="link1" />
  3. <area shape="rect" coords="232,197,340,208" href="link2.html" alt="link2" />
  4. </map>


Jak poprawnie to trzeba zapisać?

Błąd podczas walidacji:


Cytat
Below are the results of checking this document for XML well-formedness and validity.

Error Line 57 column 15: document type does not allow element "map" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag.
<map id="Map1">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>").



-------------------------
dodałem tag do tematu, ale pamiętaj
że to należy do Ciebie. Nie zamykam
bo otrzymałeś odpowiedź
~Cienki1980


Ten post edytował Cienki1980 12.04.2007, 19:01:55
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
mike
post 12.04.2007, 18:34:22
Post #2





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

Ostrzeżenie: (0%)
-----


Umieść tag <map> w jednym z wymienionych elementów blokowych.
Nie możesz go umieszczać wewnątrz elementów liniowych ani bezpośrednio wewnątrz <body>

Ten post edytował mike_mech 12.04.2007, 18:38:48
Go to the top of the page
+Quote Post
Bezan
post 12.04.2007, 18:37:32
Post #3





Grupa: Zarejestrowani
Postów: 14
Pomógł: 0
Dołączył: 8.02.2007

Ostrzeżenie: (0%)
-----


No fakt... teraz działa smile.gif

Przeoczyłem pewnie dlatego, że nie wiedziałem czym do końca jest ten <map>. W każdym razie dzięki.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 13.08.2025 - 23:53