|
Posted by Manuel Faux on March 7, 2005, 4:49 pm
Please log in for more thread options
Hello!
I used the "File Upload - Validator" and the result is like the following:
Line 13, column 204: there is no attribute "border"
....irefox!" title="Get Firefox!" border="0" /></a></p>
You have used the attribute named above in your document, but the
document type you are using does not support that attribute for this
element. This error is often caused by incorrect use of the "Strict"
document type with a document that uses frames (e.g. you must use the
"Transitional" document type to get the "target" attribute), or by using
vendor proprietary extensions such as "marginheight" (this is usually
fixed by using CSS to achieve the desired effect instead).
This error may also result if the element itself is not supported in the
document type you are using, as an undefined element will have no
supported attributes; in this case, see the element-undefined error
message for further information.
How to fix: check the spelling and case of the element and attribute,
(Remember XHTML is all lower-case) and/or check that they are both
allowed in the chosen document type, and/or use CSS instead of this
attribute.
Why is there no attribute "border"? Is this example not valid:
<img src="http://www.w3.org/QA/2002/12/qa-small.png" border="0" />
What is wrong?
Thanks...
|
|
Posted by Steve Pugh on March 7, 2005, 4:12 pm
Please log in for more thread options
>I used the "File Upload - Validator" and the result is like the following:
>
>Line 13, column 204: there is no attribute "border"
>
>...irefox!" title="Get Firefox!" border="0" /></a></p>
>
>Why is there no attribute "border"?
Because it's presentational in nature and should be done with CSS not
HTML. Most presentational attributes were removed from HTML 4.x and
higher and only linger on in the Transitional DTDs.
> Is this example not valid:
><img src="http://www.w3.org/QA/2002/12/qa-small.png" border="0" />
It's valid HTML 3.2 or HTML 2.0.
>What is wrong?
HTML 4.x Transitional, XHTML 1.0 - missing the required alt attribute.
HTML 4.x Strict, ISO HTML, XHTML 1.0 Strict, XHTML 1.1 - missing
required alt attribute; using the border attribute that has been
dropped in favour of stylesheets.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
|
|
Posted by David Ross on March 8, 2005, 12:25 pm
Please log in for more thread options
Manuel Faux wrote:
>
> Hello!
>
> I used the "File Upload - Validator" and the result is like the following:
>
> Line 13, column 204: there is no attribute "border"
>
> ...irefox!" title="Get Firefox!" border="0" /></a></p>
>
> You have used the attribute named above in your document, but the
> document type you are using does not support that attribute for this
> element. This error is often caused by incorrect use of the "Strict"
> document type with a document that uses frames (e.g. you must use the
> "Transitional" document type to get the "target" attribute), or by using
> vendor proprietary extensions such as "marginheight" (this is usually
> fixed by using CSS to achieve the desired effect instead).
>
> This error may also result if the element itself is not supported in the
> document type you are using, as an undefined element will have no
> supported attributes; in this case, see the element-undefined error
> message for further information.
>
> How to fix: check the spelling and case of the element and attribute,
> (Remember XHTML is all lower-case) and/or check that they are both
> allowed in the chosen document type, and/or use CSS instead of this
> attribute.
>
> Why is there no attribute "border"? Is this example not valid:
> <img src="http://www.w3.org/QA/2002/12/qa-small.png" border="0" />
> What is wrong?
As a deprecated attribute, BORDER is acceptable in the IMG element
for HTML 4.01 Transitional but not for HTML 4.01 Strict.
Apparently, your <!DOCTYPE> indicates the latter, not the former.
--
David E. Ross
<URL:http://www.rossde.com/>
I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
|
|
Posted by Richard on March 8, 2005, 1:15 pm
Please log in for more thread options
On Mon, 07 Mar 2005 15:49:54 +0100 Manuel Faux wrote:
> Hello!
>
> I used the "File Upload - Validator" and the result is like the following:
>
> Line 13, column 204: there is no attribute "border"
>
> ...irefox!" title="Get Firefox!" border="0" /></a></p>
"border" in this manner is only used in tables. "0" means hide, "1" means
show.
In css the "border" value can implemented much better.
img { margin:2px; border:solid 2px; black; }
This gives the image a black solid border 2 pixels wide with a 2 pixel
margin all around it.
Or in your case you could show <...........title="getfirefox"
style="border:solid 1px black;">
|
|
Posted by Steve Pugh on March 8, 2005, 8:26 pm
Please log in for more thread options
>On Mon, 07 Mar 2005 15:49:54 +0100 Manuel Faux wrote:
>
>> I used the "File Upload - Validator" and the result is like the following:
>>
>> Line 13, column 204: there is no attribute "border"
>>
>> ...irefox!" title="Get Firefox!" border="0" /></a></p>
>
>"border" in this manner is only used in tables.
Rubbish.
http://www.w3.org/TR/html401/struct/objects.html#adef-border-IMG It is deprecated though and so shouldn't really be used in new
documents.
> "0" means hide, "1" means show.
Rubbish.
http://www.w3.org/TR/html401/struct/objects.html#adef-border-IMG http://www.w3.org/TR/html401/struct/tables.html#adef-border-TABLE
For both images and tables the spec states:
border = pixels
and the prose description confirms that the value of the border
attribute is the width of the border in pixels.
Please, either stop posting of take the time to check your facts
before posting.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
|
| Similar Threads | Posted | | Border Attribute Deprecated? | June 15, 2005, 6:59 pm |
| Table border (outside only) | August 6, 2004, 8:16 am |
| Help pls, mystery border | February 12, 2005, 12:06 pm |
| changing border for tr | May 31, 2006, 6:07 pm |
| Image border color | October 18, 2004, 8:24 pm |
| Border missing in Firefox but not IE6 | December 22, 2004, 12:26 pm |
| layer over frame border | February 1, 2005, 11:31 am |
| table cell border and css | February 4, 2005, 10:32 pm |
| Table border & backgroundcolor | May 11, 2005, 4:51 pm |
| css border clipping differently in ff and ie | April 26, 2007, 9:07 am |
|