Forum Moderators: open

Message Too Old, No Replies

Validating HTML - 'quoted string cannot be followed by text'

also td 'not valid due to where it is used'

         

lostdog

3:12 pm on Nov 9, 2004 (gmt 0)

10+ Year Member



I am receiving this with CSE Validator. Please tell me what I have done wrong. Thanks

A quoted string cannot be immediately followed by text. It must be followed by a space or the end of the tag.

<img height="12" width="90%" src="http://www.example.com/images/3flagline.gif" border="0"ALT="Some Alt Text"> <table border="0" cellpadding="0" cellspacing="0">

[edited by: BlobFisk at 3:57 pm (utc) on Nov. 9, 2004]
[edit reason] Examplified URL in code [/edit]

bcolflesh

3:14 pm on Nov 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Probably wants a space here:

border="0" ALT=

Between the " and the A.

lostdog

5:10 pm on Nov 9, 2004 (gmt 0)

10+ Year Member



bcolflesh,

That did the job. Thanks

I have another. If I remove the "td", my page body color changes to the border color. If you look at our page you will see a blue outline around the white backround. How can I fix this error and keep the page backround the way it is?

The "td" tag was found, but it is not valid due to where it is used. This element may be contained in "tr". This element may not be contained in "td" and "th". The tag is currently not contained in an element that allows its use.

<table width="100%" border="0" cellpadding="7" cellspacing="0" bgcolor="white">
<td>
<table border="0" width="100%">
<tr>
<td>

bcolflesh

7:06 pm on Nov 9, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That looks like a code snippet from a larger table structure, so I'm not sure what you are doing, but you probably want something like:

<table width="100%" border="0" cellpadding="7" cellspacing="0" bgcolor="white">
<tr>
<td>
<table border="0" width="100%">
<tr>
<td>
Your content
</td>
More table cells or content then
</all the necessary closing tags>