Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Problem z validowaniem strony...
Forum PHP.pl > Forum > Po stronie przeglądarki > HTML \ XHTML
_pRonT0
Problem z validowanie strony , XHTML 1.1
Otoz tak , mam index.html zalacze kawalek kodu w ktorym wystepuje blad:
Kod
Error Line 79 column 110: character "#" is not allowed in the value of attribute "usemap".

...gif" width="155" height="62" usemap="#lang"  alt="" /></td>

It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.


Error Line 83 column 14: document type does not allow element "map" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "pre", "address", "fieldset" start-tag.

<map id="lang">

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>").


Czesc kodu HTML`a:
  1. <td valign="top">
  2. <img style="border-style: none; name:index_06;" src="images/index_06.gif" width="155" height="62" usemap="#lang" alt="</span>" /><<span style='color:blue'>/td>
  3. </tr>
  4. <map id="lang">
  5. <area shape="rect" alt="Polish version" coords="90,0,154,44" href="/pl/"
  6. onmouseover="changeImages('index_06', 'images/index_06-polish_over.gif'); return true;"
  7. onmouseout="changeImages('index_06', 'images/index_06.gif'); return true;"
  8. onmousedown="changeImages('index_06', 'images/index_06-polish_over.gif'); return true;"
  9. onmouseup="changeImages('index_06', 'images/index_06-polish_over.gif'); return true;" />
  10. <area shape="rect" alt="English version" coords="0,0,68,44" href="/en/"
  11. onmouseover="changeImages('index_06', 'images/index_06-english_over.gif'); return true;"
  12. onmouseout="changeImages('index_06', 'images/index_06.gif'); return true;"
  13. onmousedown="changeImages('index_06', 'images/index_06-english_over.gif'); return true;"
  14. onmouseup="changeImages('index_06', 'images/index_06-english_over.gif'); return true;" />
  15. </map>


Nie moge dojsc czemu jest ten blad , chetnych prosze o pomoc rozwiazania go :]
dr_bonzo
usemap="lang">
?
_pRonT0
juz probowałem wczesniej bez # ale wtedy nie dziala <map> , moze w czym innym tkwi problem .....
wzrorowalem sie na tym :
http://web.reporter.pl/html/?id=1055
i tez mam error.....

ok. działa z doctype sctrict 1.0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
ale juz z 1.1 nie ;]
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.