Codes work with some computers, not others...Why?

admin

Administrator
Staff member
Just started getting into HTML coding. My HTML design doesn't work with some computers, but it works great when I was coding/designing it and it also looks the same on some computers. So far the problems that I am getting are pictures overlapping links/paragraphs and tables aren't aligning correctly. Why is it working on some, but not others. I know it could be the operating system, but the design did work, it worked on windows 2000 and XP. I have a lot of tables. Is that the problem? I have used HTML and XHTML for coding...such as:<br />
<br />
XHTML:<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"<br />
"http://www.w3.org/TR/xhtml1-frameset.dtd"><br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<br />
HTML:<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"<br />
"http://www.w3.org/TR/html4/loose.dtd"><br />
<br />
Has anyone had this sort of problem and/or know the solution? If you need to look at the site, it is www27.brinkster.com/project4pat. But not all the links work...only the pictures link works, but it's the main/default page that is having problems. Thanks.<br />
<br />
Jacob<br />
<br />
And I just tried this XHTML:<br />
<br />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"<br />
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><br />
<br />
<html xmlns="http://www.w3.org/1999/xhtml"><br />
<br />
Will that work?<!--content-->sorry - I hate replying when I can't be any help. but I just had a look at the site, and I can't see a problem.<br />
<br />
hopefully now I moved the thread here, someone else with a bit more experience might be able to give you an answer.<br />
<br />
Cheers,<br />
HK<!--content-->it's maybe a browser issue. clear up some errors first and we'll see how it goes then.<br />
<br />
w3c validator results (<!-- m --><a class="postlink" href="http://validator.w3.org/check?uri=http%3A%2F%2Fwww27.brinkster.com%2Fproject4pat%2F&doctype=XHTML+1.0+Strict&charset=utf-8+%28Unicode%2C+worldwide%29">http://validator.w3.org/check?uri=http% ... rldwide%29</a><!-- m -->)<!--content-->Don't quote me on it, but I'll bet part of your problem starts after <body>.<br />
<br />
<table class="pic_ryan"><img src=http://www.htmlforums.com/archive/index.php/"basketball.jpg" align="left" width="125" height="160" border="2"></table><br />
<table class="stats"><a href=http://www.htmlforums.com/archive/index.php/"stats.html">2004-2005 Stats</a></table><br />
<table><br />
<td class="profile01" align="right">Height:<br>Weight:<br>Class:<br>Position:<br>No:<br>Born:<br></td><br />
<td class="profile02">6'2"<br>224<br>2005<br>TE/DE<br>34<br>May 27, 1987<br><br />
</td><br />
</table><br />
<br />
<table><td class="tchs"><img src=http://www.htmlforums.com/archive/index.php/"tchs.jpg" width="300" length="800"></td></table><br />
<br />
You have 4 tables, here, but no table rows and only two tables have <td> tags. All tables require <table><tr><td></td></tr></table> tags. I suspect that the images and stats are mashed together because the tables aren't set correctly. <br />
<br />
And, again, don't quote me on it, but unless you're using a frame or an iframe, you can't insert an html document into another one. That would give you two <body> tags and that could be what's messing things up.<br />
<br />
Peg<!--content-->That is a part of the error, true. There are a few other problems too.<br />
<br />
Run the code through <!-- m --><a class="postlink" href="http://validator.w3.org/detiled.html">http://validator.w3.org/detiled.html</a><!-- m --> and post back here about any of the error messages that you do not understand.<!--content-->Of course, first check the glossary thta defines validation errors at the W3C site itself before you come here. They like to use big words or complicated sentence structure sometimes lol, but it should be manageable.<!--content-->i did make sure that i inputted <tr><td> tags with every table. i then went to the validation website. instead of using XHTML strict, i switched it to HTML strict, and that cleared out a lot of errors b/c i was using mainly a html book("HTML For the World Wide Web...5th Edition..by Visual Quickstart Guide"). the errors that i did get from the validation website said that it didn't allow tables is some places...why is that? <br />
<br />
Below are the results of attempting to parse this document with an SGML parser. <br />
<br />
Line 13, column 6: document type does not allow element "TABLE" here (explain...). <br />
<table><tr><td class="stats"><a href=http://www.htmlforums.com/archive/index.php/"stats.html">2004-2005 Stats</a></td></tr><<br />
^<br />
Line 15, column 6: document type does not allow element "TABLE" here (explain...). <br />
<table><tr><br />
^<br />
Line 20, column 6: document type does not allow element "TABLE" here (explain...). <br />
<table><tr><td class="tchs"><img src=http://www.htmlforums.com/archive/index.php/"tchs.bmp" alt="tchs"><br>Temescal Canyon T<br />
^<br />
Line 22, column 6: document type does not allow element "TABLE" here (explain...). <br />
<table> <br />
^<br />
Line 39, column 18: document type does not allow element "DIV" here (explain...). <br />
<div id="schedule"><br />
^<br />
Line 41, column 18: document type does not allow element "TABLE" here (explain...). <br />
<table width="85"><tr><td class="score" align="center"><b>Score</b><br>26-15<br<br />
^<br />
Line 42, column 20: document type does not allow element "TABLE" here (explain...). <br />
<table width="150"><tr><td class="opponent" align="left"><b>Opponent</b><br><br />
^<br />
Line 58, column 31: document type does not allow element "TABLE" here (explain...). <br />
<table width="250" class="desc"><tr><td><br />
^<br />
Line 72, column 6: document type does not allow element "TABLE" here (explain...). <br />
<table><tr><br />
^<br />
Line 77, column 6: document type does not allow element "TABLE" here (explain...). <br />
<table><tr><br />
^<br />
Line 82, column 6: end tag for "TABLE" omitted, but its declaration does not permit this (explain...). <br />
</body><br />
^<br />
Line 12, column 0: start tag was here (explain...). <br />
<table><tr><td class="pic_ryan"><img src=http://www.htmlforums.com/archive/index.php/"basketball.jpg" width="125" height="16<br />
^<br />
the link again if you need to see it is www27.brinkster.com/project4pat. thanks.<!--content-->the reason for this error<br />
document type does not allow element "TABLE" here is because you have nesting problems. check and double check your code and make sure you nesting is correct.<br />
<br />
hence:<br />
<br />
<font><b>test</font></b><br />
<br />
that is incorrect nesting, it has to be like so:<br />
<br />
<font><b>test</b></font><br />
<br />
I can see you also forgot to close some tables before you started the new ones.<!--content-->
 
Back
Top