Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Some validation help.


  • Please log in to reply
7 replies to this topic

#1 Doug E Fresh

Doug E Fresh

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:06:45 PM

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.

# 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 ">".

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

<tr>

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.

BC AdBot (Login to Remove)

 


#2 Doug E Fresh

Doug E Fresh
  • Topic Starter

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:06:45 PM

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 groovicus

groovicus

  • Security Colleague
  • 9,963 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Centerville, SD
  • Local time:04:45 PM

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.

#4 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,260 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:03:45 PM

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.

#5 Doug E Fresh

Doug E Fresh
  • Topic Starter

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:06:45 PM

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 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,260 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:03:45 PM

Posted 25 February 2010 - 10:37 PM

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:

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

#7 Doug E Fresh

Doug E Fresh
  • Topic Starter

  • Members
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:New Jersey/Miami
  • Local time:06:45 PM

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 Andrew

Andrew

    Bleepin' Night Watchman


  • Moderator
  • 8,260 posts
  • OFFLINE
  •  
  • Gender:Not Telling
  • Location:Right behind you
  • Local time:03:45 PM

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.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users