BleepingComputer.com: Some validation help.

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Some validation help. Lots of errors.

#1 User is offline   Doug E Fresh 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 222
  • Joined: 15-May 09
  • Gender:Male
  • Location:New Jersey/Miami

Posted 24 February 2010 - 10:39 AM

I'm really new at this, and my page looks pretty good on the 7 or so browsers I've tested on. The problem: when I run it through the W3C validation it comes up with 37 errors and 1 warning. The problem is I don't understand what their issues are with my page. They seem like really basic errors, but when I look through the code I can't figure it out.

Quote

# Error Line 113, Column 11: end tag for "tr" omitted, but OMITTAG NO was specified

</table>



You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".

Quote

# Info Line 105, Column 11: start tag was here

<tr>

Quote

Error Line 275, Column 37: XML Parsing Error: Opening and ending tag mismatch: table line 270 and td

</td>


These are the most common errors. If someone can give me some ideas on what the problem might be that would be helpful. From what I've googled I keep running into people saying that it's open div tags, but it's not. The few that I used are closed. This web form is an application, so there's lots of tables within tables. I'll be happy to post code if requested. Thanks.

#2 User is offline   Doug E Fresh 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 222
  • Joined: 15-May 09
  • Gender:Male
  • Location:New Jersey/Miami

Posted 24 February 2010 - 11:06 AM

I should also note that when I validate in Dreamweaver it comes up error free. Am I doing something wrong when I upload to validate? Is it because there's an external CSS sheet?

#3 User is offline   groovicus 

  • Hail Groovicus!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 9,605
  • Joined: 05-June 04
  • Gender:Male
  • Location:Centerville, SD

Posted 24 February 2010 - 01:34 PM

Can't say without seeing your code, but the error is telling you that you are missing a tag. Whether that means it is actually missing a tag, or you are using the wrong doctype, I can't tell.
"Take the risk of thinking for yourself, much more happiness, truth, beauty, and wisdom will come to you that way" - Christopher Hitchens

#4 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,423
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 24 February 2010 - 01:45 PM

It sounds like maybe the wrong doctype. But like groovy said, without the source code there's no way to tell.
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#5 User is offline   Doug E Fresh 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 222
  • Joined: 15-May 09
  • Gender:Male
  • Location:New Jersey/Miami

Posted 25 February 2010 - 09:11 PM

Thanks for the replies, guys.

It was indeed missing tags. It seems validation was not happy with the way I closed a couple tables.
I had:
</table>

adding
</td></tr></table>
seemed to fix it. Not sure why that is, as I was pretty careful about closing cells and rows since I hand coded 99% of the tables.

I'd like to show you, but there's over 300 lines of code and I'm not sure what would be helpful to post. The coding is an application for funding, so it's literally tables within tables within tables. I didn't want to spam the board with pages of coding. Unless there's another way to share this information?

I've gone through all the W3Schools tutorials on CSS and HTML and feel like I have a pretty good grasp on this, but I want to learn more. Can either one of you recommend a good book on web design and site building that isn't incredibly boring? My Javascript book is so dull, I can hardly stand opening it.

#6 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,423
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 25 February 2010 - 10:37 PM

View PostDoug E Fresh, on Feb 25 2010, 06:11 PM, said:

I'd like to show you, but there's over 300 lines of code and I'm not sure what would be helpful to post. The coding is an application for funding, so it's literally tables within tables within tables. I didn't want to spam the board with pages of coding. Unless there's another way to share this information?

http://pastebin.com/ :thumbsup:

Quote

I've gone through all the W3Schools tutorials on CSS and HTML and feel like I have a pretty good grasp on this, but I want to learn more. Can either one of you recommend a good book on web design and site building that isn't incredibly boring? My Javascript book is so dull, I can hardly stand opening it.
It's an oldie, but I still recommend it as a great starting point for HTML/java script: HTML In An Instant
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

#7 User is offline   Doug E Fresh 

  • Forum Regular
  • PipPipPip
  • Find Topics
  • Group: Members
  • Posts: 222
  • Joined: 15-May 09
  • Gender:Male
  • Location:New Jersey/Miami

Posted 26 February 2010 - 03:48 PM

Ah, thanks. Very cool site. Pastebin Line 190 was one of the ones I fixed. I can't seem to find the other one, but it was a similar issue. I don't know too much about whether or not the Doctype is correct, since Dreamweaver always writes that part for me.

Another issue: I have to figure out how to get this to look good once it's transferred from html to pdf. Our website is currently using pdf applications that I create in Indesign, but the web guy wants to switch to html apps that will be converted to pdf after they're filled out, or archived, or something like that(I honestly don't know the details). Is it safe to assume that pretty much any open source html-pdf program I use will do the exact same thing? For example, I used one on my Mac called wrkpdf and it worked pretty well, except some tables have some extra borders around them, and he already told me I need to fix this. The web guy who will ultimately be using this will be using dompdf. I'm clueless as to how to use that program, so even if I fire up my PC I probably still won't know what I'm doing.

Thanks for the book recommendation as well. I placed an order for it from Amazon. It cost all of $0.01. :thumbsup: $4.00 even with shipping.

#8 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,423
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

Posted 26 February 2010 - 07:06 PM

I haven't a clue how one would go about generating a PDF in a web app, but I'm sure it can be done.
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Posted Image
Boredom Software Stop Highlighting Things

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users