Forum Moderators: open
<noscript><img border="0" width="1" height="1" alt="" src="/button5.asp?tagver=5&si=000000&fw=0&js=No&" /></noscript>
Line 88, column 36: there is no attribute "border" (explain...).
//--></script><noscript><img border="0" width="1" height="1" alt="" src="http://
Line 88, column 174: document type does not allow element "img" here; missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", "fieldset" start-tag
...;si=000000&fw=0&js=No&" /></noscript></div>
What do you do to replace the img border attribute? I know I can control my image borders through css, what effect does not having it in the html tag have? What replaced that attribute in XHTML 1.1?
Line 88, column 185: end tag for "noscript" which is not finished (explain...).
...amp;fw=0&js=No&" /></noscript></div>
If I remove the <noscript> I get validation. So, what's up with this <noscript> tag. What do I need to change so it passes XHMTL 1.1 validation?
Modular CSS generally includes the img element with the inline text module and as such, requires imgaes to be contained, either in divs, paragraphs, etc.
I'm just guessing here.. but I suspect your code is only contained by the body element... You would get a similar error message if you placed plain text, "unwrapped," anywhere in the body...
- papabaer
BTW... <img border="0" /> is soooooo old skool! Not to mention "fattening" to the code.
CSS:
img {
border: 0;
}
.... keep it outta tha html.
<noscript>[b]<p>[/b]<img src="whatever.gif" alt="whatever">[b]</p>[/b]</noscript>
You can replace the <p> by a <div> or another block element.
You should also check out [w3.org...] (that is, section C4), which talks about using comments to hide your Javascript from older browsers.
g1smd, thanks for the info on the <script> tag. This is my first site in xhtml and I'm experimenting to see what I'm up against when I do make the transition with all sites. I've found that I've been able to validate XHTML 1.0 Strict and then I found the XHTML 1.1 DOCTYPE which I am now using. Which is more strict, 1.0 or 1.1? I couldn't find anything on a strict XHTML 1.1.
<div class="one"><a href="#" onmouseover="changeImages('imageone', '/images/one-over.gif'); return true;" onmouseout="changeImages('imageone', '/images/one.gif'); return true;"><img title="Image One" name="imageone" src="/images/one.gif" width="100" height="10" alt="Image One Tab" /></a></div>
The imageone is named and is part of a menu using javascript for rollovers. Without the image name attribute, the rollovers of course do not work.
Anyone familiar with this? If so, what did you do to fix the issue?
The error...
Line 40, column 254: there is no attribute "name" (explain...) img title="Image One" name="imageone" src="/images/one
P.S. The javascript is generated by ImageReady.
The name attribute has been the last thing on my list of XHTML 1.1 validation. I came across a couple of W3C List messages where this particular subject came up and there was really never any confirmed resolution that I could find.
Well, there I was researching XHMTL 1.1 further and sure enough, the answer to my problem...
The id attribute must be used instead of the name attribute. The name attribute for referencing elements is officially deprecated and may be removed in future XHTML specifications. Use the id attribute in its place.Correct (id attribute used):
<img src="image.gif" id="imagename" alt="Image Name" />
Incorrect (deprecated name attribute used):
<img src="image.gif" name="imagename" alt="Image Name" />
I found a nice little list of Coding Standards using XHTML [macromedia.com] at the Macromedia site.
P.S. The problem had to do with using javascript rollovers. The javascript generated by Adobe ImageReady uses the name attribute.