Forum Webmastera, HTML, CSS, PHP, MySQL, Hosting, Domeny - Forum dla Webmasterów
Nie moge znaleść błędu wskazania - W3C - Wersja do druku

+- Forum Webmastera, HTML, CSS, PHP, MySQL, Hosting, Domeny - Forum dla Webmasterów (https://www.webmastertalk.pl)
+-- Dział: Technologie internetowe - tworzenie stron WWW (https://www.webmastertalk.pl/forum-technologie-internetowe-tworzenie-stron-www)
+--- Dział: xHTML, CSS, JavaScript (https://www.webmastertalk.pl/forum-xhtml-css-javascript)
+--- Wątek: Nie moge znaleść błędu wskazania - W3C (/thread-nie-moge-znale%C5%9Bc-bledu-wskazania-w3c)



Nie moge znaleść błędu wskazania - W3C - hym23 - 20-10-2009

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


RE: Nie moge znaleść błędu wskazania - W3C - BeamBear - 20-10-2009

wprowadź do taga <map name="mapa"> atrybut id, np tak - <map name="mapa" id="mapa_1">


RE: Nie moge znaleść błędu wskazania - W3C - hym23 - 20-10-2009

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!!


RE: Nie moge znaleść błędu wskazania - W3C - BeamBear - 20-10-2009

[Obrazek: highfive.gif] piąteczka Smile