Tech Support Forum banner

HTML validator error

1822 Views 3 Replies 2 Participants Last post by  TheTechIsIn
I received the same error from the HTML validator in the two examples below. How do I correct for it. Should I start with a new body tag for each of the tags causing the errors?

Thanks,
wickham26


<center><table>

^Error: element "CENTER" not allowed here; possible cause is an inline element containing a block-level element


<blockquote>Tibby's breed is that of a hunter of sponges.

^Error: element "BLOCKQUOTE" not allowed here; possible cause is an inline element containing a block-level element
Status
Not open for further replies.
1 - 4 of 4 Posts
:coffee:

Welcome,

For what html code standard are you using the validator to validate? What is the name of the HTML validator are you using?

Also a little more of the code is gonna be needed as a reference as to where the error occurred within the code and the tags already around it... If I'm not making any sense its ok its pretty late..:) I just need more of the html code to see what possible errors in syntax there is.

And lastly what program are you using to write the code in the first place?
thank you for you quick reply

According to the top of my web page its HTML 4.0

http://www.w3schools.com/site/html.htm W3C is the validator that I used



More code for <center>
<td >
<img src="013_10_0005.jpg" width="200" height="250 alt="Tibby" align="left">
</td>

<td><font face="Comic Sans MS, Arial Narrow"><font color="#993300">
<center><table>
<table border="4" ALIGN="LEFT" bordercolor="#6633ff" background="022_19_0001.jpg" cellspacing="1" cellpadding="3" height="450" width="350">
<caption><a name="Table">Tibby Table</a></caption>

<td align=center colspan=2 rowspan=2>Tibby<br> wibbers</td>
<td align=center rowspan=2>Tibby<br> baby</td> <br>




More code for <blockquote>
<tr><td ALIGN="CENTER" height="350" WIDTH="350">
<font face="Comic Sans MS, Arial Narrow"><font color="#FF3366">
<a name="Monster">
<dt><b>TIBBERMONSTER</b></dt><dd>A great huntress to be feard.</dd></a>
</font></font>
<font face="Comic Sans MS, Arial Narrow"><font color="#FF3366">
<blockquote>Tibby's breed is that of a hunter of sponges. Any sponge brought into to the house has a limited lifetime. It is bound to die a terrible death. I therefore have mercy on them and buy papertowels.
</blockquote></font></font>
</td>


I wrote this code in the geocities site.

I really appreciate all your help.

Thanks,

wickham26
See less See more
:coffee:

ok, thanks for the info:

For the first section remove the <center><table> line. If you want the table centered you can control that by modifying the line: <table border="4" ALIGN="LEFT" border="#6633ff" -- change the ALIGN="LEFT" to "CENTER" if you want the table centered.

I don't see the problem with the second code jump right out at me but Ill look at it closer in a little bit and let you know.
1 - 4 of 4 Posts
Status
Not open for further replies.
Top