/    Sign up×
Community /Pin to ProfileBookmark

HTML Validation Error

I would appreciate a little help if I can get it. I am trying to validate my page and I just don’t know how to correct the issues. Any help would be much appreciated.

( Error 2 ) Line 50, Column 46: there is no attribute “height”

<td width=”618″><table width=”592″ height=”167″ border=”0″>

( Error 5 ) Line 205, Column 90: there is no attribute “bordercolor”

<td width=”574″><table width=”574″ height=”925″ border=”1″ align=”center” bordercolor=”#FFCC00″>

Thanks so much in advance for any help that I can get.

Rick

to post a comment
HTML

13 Comments(s)

Copy linkTweet thisAlerts:
@tracknutFeb 22.2008 — I'm not a wild tables user, so I had to look this up. From http://www.w3schools.com/tags/tag_table.asp it appears there is not height nor bordercolor attribute for the <table> tag (as the validator is telling you). You might want to look into CSS to style the table instead, for example it has border-color and height properties that may do what you want.

Dave
Copy linkTweet thisAlerts:
@mrcountryauthorFeb 22.2008 — I looked at the page that you sent and I really dont understand it. Is there any way that someone can look at the coding and tell me how to correct it. I'm sorry but I just can't figure it out. I'm trying, it's just not coming to me.

http://www.countrycustomtile.com
Copy linkTweet thisAlerts:
@stalebrewFeb 22.2008 — just remove the height="167" and add style="height:167px"

and change the bordercolor="#FFCC00" to style="bordercolor:#FFCC00"
Copy linkTweet thisAlerts:
@harumphFeb 22.2008 — It doesn't like for you to use height= when referring to tables, and bordercolor is not a valid attribute call.

This is (more likely) a better solution for you:
[CODE]<table align="center" style="border-color: #FFCC00; border-collapse: collapse; border: 1px solid; height: 925px; width: 574px;">[/CODE]

You have another problem, too. IE is more forgiving than Firefox. The green will not show up because everywhere there is a bgcolor="003300" it's not going to recognize that. Add your pound sign and it's show up in Firefox.

(bgcolor="#003300") btw, it's in there 84 times, I think. (do a search/replace)

and, you'll need to add a [CODE]<td width="574" [COLOR="Red"]valign="top"[/COLOR]><table align="center" ...[/CODE] to bring this table to the top in Firefox.
Copy linkTweet thisAlerts:
@mrcountryauthorFeb 22.2008 — I appreciate the tip on the # sign in front of the bacground color, I'm taking care of that issue now, but as for the coding that you gave me I tried and instead of 2 errors it gave me 8 errors. How bad is the coding errors that I have and how will this effect my surfers. I will go ahead and correct the background problems. Thats about 84 as you say times about 32 pages " Yee Haw" I really just dont know what i'm doing with the coding.?
Copy linkTweet thisAlerts:
@harumphFeb 22.2008 — Could be collapse vs collapsed. What were the errors?

I don't normally use border-color. If I want to make a border like that, I use:

border: 1px solid #FFCC00;

and throw the color in there.
Copy linkTweet thisAlerts:
@mrcountryauthorFeb 23.2008 — I really dont understand how and where to enter that code. Iv'e pretty much got all the errors taken care of except these two and I guess I'm just not going to be able to figure it out. I have the same 2 errors on all 32 pages.

( Error 2 ) Line 50, Column 46: there is no attribute "height"

<td width="618"><table width="592" height="167" border="0">


( Error 5 ) Line 205, Column 90: there is no attribute "bordercolor"

<td width="574"><table width="574" height="925" border="1" align="center" bordercolor="#FFCC00">
Copy linkTweet thisAlerts:
@TyeMFeb 23.2008 — Everyone here has given you pretty good solution ideas.

Looking at your source you already use CSS styles in the head of your page. So unless someone else made your page for you, you already know what CSS is. So it is a matter of applying the concepts in a slightly different way. What people have offered here in some examples is inline CSS.

<table width="592" height="167" border="0">

in the above {table} is the tag

{width}, {height} and {border} are attributes of the tag in this case {table}

your error : ( Error 2 ) Line 50, Column 46: there is no attribute "height"

solution remove {height}, use {style} attribute instead.

<table style="width:592px; height: 167px; border: 0px">
Copy linkTweet thisAlerts:
@mrcountryauthorFeb 24.2008 — I dont understand, I used Dreamweaver CS3 to create this site . Thanks anyway, I will just let it go.
Copy linkTweet thisAlerts:
@WebJoelFeb 24.2008 — height="" and bordercolor="" are IE-proprietory Selectors. Most/All browsers do support them, -but are under no obligation to do so. It's just for legacy purposes that they do so.

Using CSS, the correct alternatives are style="height:[I]foo[/I]; border:1px solid [I]color[/I];" (whereby "foo" is a numeric+px(or whatever unit of measure you are using), and "color" is one of "#[I]nnnnnn[/I]" or "rgb([I]nn[/I],[I]nn[/I],[I]nn[/I])" and latter being [I]n[/I] is hex numerals).

Generally what triggers these are 'errors' is the !doctype that you are using. It's just letting you know that these Selectors aren't included in that particular !doctype repetoire.
Copy linkTweet thisAlerts:
@root123Feb 25.2008 — I would appreciate a little help if I can get it. I am trying to validate my page and I just don't know how to correct the issues. Any help would be much appreciated.


( Error 2 ) Line 50, Column 46: there is no attribute "height"

<td width="618"><table width="592" height="167" border="0">


( Error 5 ) Line 205, Column 90: there is no attribute "bordercolor"

<td width="574"><table width="574" height="925" border="1" align="center" bordercolor="#FFCC00">


Thanks so much in advance for any help that I can get.

Rick[/QUOTE]


Simply strike out the "height" & "bordercolor" attributes.....

check the page in IE for any changes. If not then it's okay.
Copy linkTweet thisAlerts:
@mrcountryauthorMar 02.2008 — Stupid question, but what do you mean by strike out.
Copy linkTweet thisAlerts:
@WebJoelMar 03.2008 — Stupid question, but what do you mean by strike out.[/quote] replace the proprietary (the "IE-only") code for the standard "every decent compliant browser" code. ?

Beleive it or not, [I]height="[I]value[/I]"[/I] is IE-proprietary (made by IE, for IE). It [I]works[/I] in all browsers and would be a cosmic d-OH! if it did not... but the 'correct' way to write this is style="height:[I]value[/I]px;" (whereby "[I]value[/I]" is a numeral or numerals)
×

Success!

Help @mrcountry 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 5.9,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...