Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z validowaniem strony...
_pRonT0
post
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 23.09.2004
Skąd: JamaiCa [THC]

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


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 :]

Ten post edytował _pRonT0 22.10.2005, 14:02:40
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
dr_bonzo
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


usemap="lang">
?
Go to the top of the page
+Quote Post
_pRonT0
post
Post #3





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 23.09.2004
Skąd: JamaiCa [THC]

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


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 ;]

Ten post edytował _pRonT0 22.10.2005, 15:29:06
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 25.08.2025 - 00:25