Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [html]Jak wstawić <map> zgodne z XHTML 1.0 Strict ?
Forum PHP.pl > Forum > Przedszkole
Bezan
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
mike
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>
Bezan
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.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.