![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm stuck trying to validate an html 4.01 page that uses an image map. I copied the second client-side example from here: http://www.w3.org/TR/html401/struct/objects.html#h-13.6 and implemented it here: http://www.chem.utoronto.ca/courseno...hrom/hplc.html |
#3
| |||
| |||
|
|
David C. Stone>: I'm stuck trying to validate an html 4.01 page that uses an image map. I copied the second client-side example from here: http://www.w3.org/TR/html401/struct/objects.html#h-13.6 and implemented it here: http://www.chem.utoronto.ca/courseno...hrom/hplc.html You didn't copy it as the example is laid out. Look again. |
#4
| |||
| |||
|
|
David C. Stone wrote : I'm stuck trying to validate an html 4.01 page that uses an image map. I copied the second client-side example from here: http://www.w3.org/TR/html401/struct/objects.html#h-13.6 [snip] Your <map> should be nested inside your <object>, e.g. like this: |
| Your anchors should be coded like h2><a name="inject">Injection Valve</a></h2 and not like h2><a name="inject"></a>Injection Valve</h2> (<- this is an empty anchor) |
|
Also, note that float: middle is invalid CSS code and is therefore a css declaration which will be ignored everytime by all browsers img.centred { border-left: 5pt solid white; border-right: 5pt solid white; float: middle } If you want to horizontally align elements (inline or block-level), then may I suggest this tutorial: Interactive demo on CSS horizontal alignment and horizontal formating http://www.gtalbot.org/NvuSection/Nv...Alignment.html |
#5
| |||
| |||
|
|
Your anchors should be coded like h2><a name="inject">Injection Valve</a></h2 and not like h2><a name="inject"></a>Injection Valve</h2> (<- this is an empty anchor) |
* -(A) -- anchor -->
#6
| |||
| |||
|
|
In article <41tu62F1g05i1U1 (AT) uni-berlin (DOT) de>, Gérard Talbot <newsblahgroup (AT) gtalbot (DOT) org> wrote: Your anchors should be coded like h2><a name="inject">Injection Valve</a></h2 and not like h2><a name="inject"></a>Injection Valve</h2> (<- this is an empty anchor) What is wrong with empty anchors? |
|
I thought they were allowed? !ELEMENT A - - (%inline * -(A) -- anchor -- |
|
I ask because the quick way to solve some validation problems on my old pages involved ending up with a lot of empty anchors. |
#7
| |||
| |||
|
|
On Wed, 4 Jan 2006, Eric Lindsay wrote: What is wrong with empty anchors? I ask because the quick way to solve some validation problems on my old pages involved ending up with a lot of empty anchors. Perhaps if you would be more specific about what problem that was meant to solve, there could be a better answer. Otherwise, you can just disregard the advice - I can't recall now which browser/versions were affected. |
#8
| |||
| |||
|
|
David C. Stone wrote : I'm stuck trying to validate an html 4.01 page that uses an image map. I copied the second client-side example from here: http://www.w3.org/TR/html401/struct/objects.html#h-13.6 and implemented it here: http://www.chem.utoronto.ca/courseno...hrom/hplc.html but the W3C validator complains that: "document type does not allow element "MAP" here; missing one of "P", "H1", "H2", "H3", "H4", "H5", "H6", "PRE", "DIV", "ADDRESS" start-tag" I've tried various combinations to get this to work, without success. Am I missing something obvious, or is there a problem with either the example or the validator? Your <map> should be nested inside your <object>, e.g. like this: |
![]() |
| Thread Tools | |
| Display Modes | |
| |