Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [XHTML] strict problem z mapą graficzną
Chrom
post 14.03.2008, 20:14:51
Post #1





Grupa: Zarejestrowani
Postów: 240
Pomógł: 17
Dołączył: 28.12.2005
Skąd: Warszawa

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


Witam,

mam taki kod:
  1. <div style="text-align: center" >
  2. <img src="obraz/11.jpg" usemap="#mapa" style="border: 0px;" width="550" height="391" alt="" />
  3. <map name="mapa" >
  4. <area shape="rect" coords="146,206,270,336" href="index.php?go=2" alt="f11" title="Projekt." />
  5. <area shape="rect" coords="18,207,144,345" href="index.php?go=3" alt="f12" title="Projekt." />
  6. <area shape="rect" coords="14,45,143,203" href="index.php?go=4" alt="f13" title="Projekt." />
  7. <area shape="rect" coords="147,41,268,175" href="index.php?go=7" alt="f14" title="Projekt." />
  8. </map> </div>

niestety walidator W3C podaje błąd:
  1. <map name="mapa" >
  2. The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.
  3. Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.

Znalazłem opis że HTML 4.01 zamiast name zaleca id
Gdy zmieniam <map name="mapa" > na <map id="mapa" > to nie pokazuje błędu ale pada cała mapa.
Czy ktoś wie gdzie robię błąd;
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: 18.07.2025 - 01:42