4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 Help to pass page in w3c validator
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
multichild
Junior WebHelper
Junior WebHelper


Joined: 28 Jan 2006
Posts: 1

PostPosted: Sat Jan 28, 2006 9:00 pm (11 years, 8 months ago) Reply with QuoteBack to Top

Im using map, and can t seem to find the answer to pass it in the validator. I get this message:

required attribute "id" not specified.

and here is the code:

<map name="m_DocumentationRequired_selected">
<area shape="rect" coords="558,66,638,97" href="ContactUs.asp" title="Visa Information" alt="Visa Information" />
<area shape="rect" coords="472,66,553,97" href="trainingPay.htm" title="Training and Pay" alt="Training and Pay" />
<area shape="rect" coords="386,66,468,98" href="OverseasVisitors.htm" title="Arrival and Accomodation" alt="Arrival and Accomodation" />
<area shape="rect" coords="287,66,381,99" href="documentationRequired.htm" title="Documentation Required" alt="Documentation Required" />
<area shape="rect" coords="202,66,283,99" href="candidateProfile.htm" title="Candidate Profile" alt="Candidate Profile" />
<area shape="rect" coords="116,66,197,98" href="applicationForm.asp" title="Application form" alt="Application form" />
<area shape="rect" coords="31,66,111,98" href="index.htm" title="Home Page" alt="Home Page" />
</map>

<img name="DocumentationRequired_selected" src="HomePage_selected.gif" width="779" height="110" border="0" usemap="#m_DocumentationRequired_selected" alt="" />


lee
OfflineView User's ProfileFind all posts by multichildSend Personal Message
Robert Wellock
WebHelper
WebHelper


Joined: 18 Jan 2002
Posts: 61
Location: Yorkshire - UK

PostPosted: Mon Jan 30, 2006 10:24 am (11 years, 8 months ago) Reply with QuoteBack to Top

Do what it says use and id attribute, I'd suggest giving it the same id name as the image name though.

<map name="m_DocumentationRequired_selected" id="DocumentationRequired_selected">

________________________________
};-) http://www.xhtmlcoder.com/
OfflineView User's ProfileFind all posts by Robert WellockSend Personal MessageVisit Poster's Website
LadyH
Junior WebHelper
Junior WebHelper


Joined: 07 Feb 2006
Posts: 2

PostPosted: Tue Feb 07, 2006 1:14 am (11 years, 8 months ago) Reply with QuoteBack to Top

I just did a websearch on this exact same error and same validator using a mapped object and it brought me here to this post! Go figure!

I copied your suggestion and it removed the error for me! thank you!!

I'm trying to clean up a very old website that was originally made with a simple but archaic webpage maker years ago. The web page has always worked fine..I've never had any problems. I just thought it was time to clean up the coding and now I'm obsessed with getting no errors if possible (even though technically they are not affecting the performance of the page.)
The other 2 elements that it seems to be spitting out is a nice simple embedded midi file code which has always worked so nicely. (I just hate players showing on a web site).

<bgsound src="lets_twist_again.mid" />
Error: there is no attribute src for this element (in this HTML version)
Error: element bgsound not defined in this HTML version

and the other is a fixed background which was shown to me years ago and which I like to use on quite a few of my pages. It just spat this out and said no such animal.
<body bgproperties="fixed">

Anyone have any tips on upgrading those 2 codes while we're at it? LOL

This website has dozens of pages and I've only gotten as far as 2 today! If I have a better understanding of what it's trying to tell me, hopefully the rest won't take this long. I've actually learned an awful lot today about XHTML..I had never heard of it before today.
OfflineView User's ProfileFind all posts by LadyHSend Personal MessageSend email
Robert Wellock
WebHelper
WebHelper


Joined: 18 Jan 2002
Posts: 61
Location: Yorkshire - UK

PostPosted: Tue Feb 07, 2006 9:47 am (11 years, 8 months ago) Reply with QuoteBack to Top

The only official way in vanilla XHTML is to use the <object> and <param> elements regarding embedding of multimedia files. Though browser support can be iffy depending upon the plug-in required, or file type.

As for fixed background you require CSS, for example:

Code:
<style type="text/css">
<!--
body {
background-image: url(http://example.com/someimage.png);
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed; }
-->
</style>

________________________________
};-) http://www.xhtmlcoder.com/

Last edited by Robert Wellock on Tue Feb 07, 2006 6:54 pm, edited 2 times in total
OfflineView User's ProfileFind all posts by Robert WellockSend Personal MessageVisit Poster's Website
LadyH
Junior WebHelper
Junior WebHelper


Joined: 07 Feb 2006
Posts: 2

PostPosted: Tue Feb 07, 2006 2:25 pm (11 years, 8 months ago) Reply with QuoteBack to Top

I'm getting this error with that style coding.

Line 17, character 7:
<style>
^Error: required attribute type not specified

Line 17, character 7:
<style>
^Error: element style not allowed here; check which elements this element may be contained within
OfflineView User's ProfileFind all posts by LadyHSend Personal MessageSend email
Robert Wellock
WebHelper
WebHelper


Joined: 18 Jan 2002
Posts: 61
Location: Yorkshire - UK

PostPosted: Tue Feb 07, 2006 6:51 pm (11 years, 8 months ago) Reply with QuoteBack to Top

I assume you have put it between the <head> .... </head> if not I cannot tell without looking at the code and make sure you copy it correctly. I think I forgot to type: <style type="text/css"> last time.

________________________________
};-) http://www.xhtmlcoder.com/
OfflineView User's ProfileFind all posts by Robert WellockSend Personal MessageVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.087257 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme