There is no attribute ...
Cause:
The element uses an attribute that does not exist. This error can be caused:
- By using proprietary attribute of IE or Netscape;
- By incorrect choice of the document type;
- Or by mistyping the attribute name.
This is usually fixed by using CSS to achieve the desired effect instead.
Example:
Sample: <table> proprietary attribute "height"
 | <table height="100%"> |
 | <table style="height: 100%"> |
 | <table broder="2"> |
 | <table border="2"> |
Solution:
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.
Most attributes have a equivalents in standard HTML or CSS.
Tag | Proprietary attribute | Standard attribute
|
<body> | marginwidth=0, marginheight=0, leftmargin=0, topmargin=0 | style="margin: 0"
|
<frameset> | border=0, frameborder=0 ,framespacing=0 | None with frameset. See here. Use a HTML table with iframe for the same result.
|
<table> | height=100% | style="height: 100%"
|
<table> | nowrap | style="white-space: nowrap" or use nowrap in <td> or <th>
|
<td> | background="abc.gif" | style="background-image:url(abc.gif)"
|
References: