This week's book giveaway is in the Java in General forum.
We're giving away four copies of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 and have ishori Sharan & Adam L Davis on-line!
See this thread for details.
Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic