• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

When I validate my code I hit this problem...

 
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi friends,
When I validate my code through http://validator.w3.org
I got unvalid lines:
1.
Line 33, column 64:
<table cellspacing="2" cellpadding="5" width="100%" border="1">
^Error: element "TABLE" not allowed here; possible cause is an inline element containing a block-level element
2.
Line 40, column 5:
#foreach ($name in $listBugs)
^Error: text is not allowed here; try wrapping the text in a more descriptive container
And I don't know how can I deal with them could you please help me on this?
Many thanks,
Elahe
 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As to the first, I think it might be complaining because your line breaks aren't closed. i.e., <br/>.
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
actually to quote the html3.2 reference


BR
Used to force a line break. This is an empty element so the end tag is forbidden.


i do notice this strange tag at about line 28
<br/>
and again two lines later
<b>$tabletitle</b><br/></font>
as for the other error, what scripting language is that anyway?
[ August 09, 2002: Message edited by: Randall Twede ]
 
Garann Means
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Randall's right. I didn't look at the DOCTYPE, just assumed it was XHTML. Sorry.
 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear freinds,
It was nothing with br tag and this codes is in template. Do you think it is better I if I transfer this question to Jakarta forum which is the exact place for my question?
I can submit my question one more time or yu please refer me there.
Thanks,
Elahe
 
Randall Twede
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i can move it to the jakarta forum for you. concider it done.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic