Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
Nie moge znaleść błędu wskazania - W3C
#1
Mam mape odnosników zrobioną z img...W3C pozakuje mi bład. Nie stety nie mogę go zidentyfikować albo nie rozumiem o co biega W3C:/

Cała strona jest zrobiona w:
<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">


<div id="menu">
<img src="images/pasek caly.gif" usemap="#mapa" width="800" height="35" alt="" />
<map name="mapa">
<area shape="rect" href="index.html" coords="0,1,159,35" alt="Ofirmie"/>
<area shape="rect" href="cennik.html" coords="321,1,481,35" alt="cennik"/>
<area shape="rect" href="galeria.html" coords="482,1,800,35" alt="adresy"/>
</map>
</div>

a o to bład W3C

1. Line 18, Column 17: required attribute "id" not specified
<map name="mapa">

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.
Typical values for type are type="text/css" for <style> and type="text/javascript" for <script>.
Odpowiedz
#2
wprowadź do taga <map name="mapa"> atrybut id, np tak - <map name="mapa" id="mapa_1">
"Kod ma być koszerny!" [Obrazek: 106.gif]
Odpowiedz
#3
Super działa nie wpadł bym na to nigdy!! Wieki thx BeamBear !!!! Męczyłem sie z tym chyba z tydzień!

Został mi tylko teraz jeszcze jeden Warunek do poprawienia. Ma ktoś jakiś pomysł?

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

Mismatch between Public and System identifiers in the DOCTYPE declaration

This document uses an inconsistent DOCTYPE declaration. The Public Identifier -//W3C//DTD XHTML 1.0 Strict//EN declares the XHTML 1.0 Strict document type, but the associated System Identifier DTD/xhtml1-strict.dtd does not match this document type.

The recommended System Identifier for XHTML 1.0 Strict is http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd.

The safest way to use a correct DOCTYPE declaration is to copy and paste one from the recommended list and avoid editing that part of your markup by hand
A już sobie poradziłem z warunkiem!! znalazlem w linku Smile wielkie THX dla Bear jeszcze raz!!
A już sobie poradziłem z warunkiem!! znalazlem w linku Smile wielkie THX dla Bear jeszcze raz!!
Odpowiedz
#4
[Obrazek: highfive.gif] piąteczka Smile
"Kod ma być koszerny!" [Obrazek: 106.gif]
Odpowiedz


Skocz do:


Użytkownicy przeglądający ten wątek: 1 gości
Sponsorzy i przyjaciele
SeoHost.pl