/    Sign up×
Community /Pin to ProfileBookmark

setting the document type appropriately

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 [URL=http://validator.w3.org/check?uri=http%3A%2F%2Ftest.talent.co.uk%2Ftalent_index2.php#line-19]http://validator.w3.org/check?uri=http%3A%2F%2Ftest.talent.co.uk%2Ftalent_index2.php#line-19[/URL]


—————–

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

to post a comment
Full-stack Developer

7 Comments(s)

Copy linkTweet thisAlerts:
@CharlesOct 13.2003 — [font=georgia]The TABLE element has no "height" attribute in any valid HTML doctype with which I am familiar. Stop using Dreamweaver.[/font]
Copy linkTweet thisAlerts:
@neilauthorOct 13.2003 — 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
Copy linkTweet thisAlerts:
@neilauthorOct 13.2003 — [i]Originally posted by Charles [/i]

[B][font=georgia]The TABLE element has no "height" attribute in any valid HTML doctype with which I am familiar. Stop using Dreamweaver.[/font] [/B][/QUOTE]


oh right, thats not very good ?
Copy linkTweet thisAlerts:
@Sux0rZh_jc0rzOct 13.2003 — try HTML 4.0 transitional
Copy linkTweet thisAlerts:
@toicontienOct 13.2003 — 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
Copy linkTweet thisAlerts:
@CharlesOct 13.2003 — [i]Originally posted by Sux0rZh@jc0rz [/i]

[B]try HTML 4.0 transitional [/B][/QUOTE]
[i]From the HTML 4.0 Transitional Document Type Definition:[/i]

[font=monospace][b]<!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 --

>[/b][/font]

[i]http://www.w3.org/TR/1998/REC-html40-19980424/sgml/loosedtd.html[/i]
[/quote]
[font=georgia]1) HTML 4.0 was superseded by HTML 4.01 back in 1999.

2) The TABLE element has no "height" attribute in HTML 4.0.[/font]
Copy linkTweet thisAlerts:
@spufiOct 13.2003 — 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.
×

Success!

Help @neil spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...