Click to See Complete Forum and Search --> : setting the document type appropriately


neil
10-13-2003, 04:28 AM
I was wondering if anyone knew what appropriate document type setting was if I want to use the height attribute?

Dreamweaver puts these in tables by default, but they do come in useful sometimes.

Below is the information I got when running the page through the W3 validator.

-------------------------

from http://validator.w3.org/check?uri=http%3A%2F%2Ftest.talent.co.uk%2Ftalent_index2.php#line-19


-----------------

Line 19, column 29: there is no attribute "HEIGHT" (explain...).
<table width="100%" height="25" border="0" cellpadding="0" cellspacing="0">
^

------------------------

You have used an attribute with an element that is defined not to have that attribute. This is most commonly caused by using vendor-specific attributes without setting the document type appropriately.

----------------------------------

cheers Neil

Charles
10-13-2003, 04:32 AM
The TABLE element has no "height" attribute in any valid HTML doctype with which I am familiar. Stop using Dreamweaver.

neil
10-13-2003, 04:32 AM
Its also telling me that there is no attribute for width or border either and it also seems to be asking for ALT tags with every IMG

neil
10-13-2003, 04:34 AM
Originally posted by Charles
The TABLE element has no "height" attribute in any valid HTML doctype with which I am familiar. Stop using Dreamweaver.

oh right, thats not very good :(

Sux0rZh@jc0rz
10-13-2003, 07:42 AM
try HTML 4.0 transitional

toicontien
10-13-2003, 11:37 AM
According to www.w3schools.com, the <td> tag has the height attribute in HTML 4.01 Transitional and Frameset.

For a great reference for HTML 4.01 tags, see http://www.w3schools.com/html/html_reference.asp

Charles
10-13-2003, 11:58 AM
Originally posted by Sux0rZh@jc0rz
try HTML 4.0 transitional From the HTML 4.0 Transitional Document Type Definition:
<!ATTLIST TABLE -- table element --
%attrs; -- %coreattrs, %i18n, %events --
summary %Text; #IMPLIED -- purpose/structure for speech output--
width %Length; #IMPLIED -- table width --
border %Pixels; #IMPLIED -- controls frame width around table --
frame %TFrame; #IMPLIED -- which parts of frame to render --
rules %TRules; #IMPLIED -- rulings between rows and cols --
cellspacing %Length; #IMPLIED -- spacing between cells --
cellpadding %Length; #IMPLIED -- spacing within cells --
align %TAlign; #IMPLIED -- table position relative to window --
bgcolor %Color; #IMPLIED -- background color for cells --
%reserved; -- reserved for possible future use --
datapagesize CDATA #IMPLIED -- reserved for possible future use --
>
http://www.w3.org/TR/1998/REC-html40-19980424/sgml/loosedtd.html1) HTML 4.0 was superseded by HTML 4.01 back in 1999.

2) The TABLE element has no "height" attribute in HTML 4.0.

spufi
10-13-2003, 12:42 PM
For your <input> tag errors.
http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.4

The alt attribute is required for <img> tags because the alt attribute information is displayed if the image isn't. You can leave the alt attribute blank(alt="") if you don't want anything displayed if the image can't be displayed.

For absbottom info.
http://www.w3.org/MarkUp/Test/Img/imgtest.html

You will need to use special character code to validate some of your links.