Hi, this is the error that I get..please help me debug is...the source code is below the errors...thanks

the website must look something like this
http://www.sis.pitt.edu/~arazeez/index.html


* Line 20, column 40: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

<table width = "100%" cellspacing = "0">

* Line 77, column 38: document type does not allow element "table" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

<table width="100%" cellspacing = "0">
--------------------------------------------------------------------------------------

1. <?xml version="1.0" encoding="UTF-8"?>
2. <!DOCTYPE html
3. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
5.
6. <head>
7.
8. <link href="styles.css" rel="stylesheet" type="text/css"></link>
9. <title> Abdul Raqeeb's home page </title>
10.
11. </head>
12.
13.
14. <body>
15.
16. <h1>
17. <img src="pittLogo.gif" alt='University Logo'></img>
18.
19.
20. <table width = "100%" cellspacing = "0">
21. <tr>
22.
23. <td align="center"><a href="index.html"><span class= "writing">Home</span></a></td>
24. <td align="center"><a href="education.html"><span class= "writing">Education</span></a></td>
25. <td align="center"><a href="courses.html"><span class= "writing">Courses</span></a></td>
26. <td align="center"><a href="experience.html"><span class= "writing">Experience</span></a></td>
27. <td align="center"><a href="projects.html"><span class= "writing">Projects</span></a></td>
28. <td align="center"><a href="hobbies.html"><span class= "writing">Other Interests</span></a></td>
29. <td align="center"><a href="Abdul_Raqeeb_Resume.pdf"><span class= "writing">Resume</span></a></td>
30. </tr>
31. </table><br></br>
32.
33.
34. </h1>
35.
36.
37. <hr></hr><table width="100%" cellspacing = "0">
38.
39. <tr>
40.
41. <td align = "left">
42. <a href="index.html"><span class= "urlWriting">Home</span></a>
43. <p></p>
44. <a href="education.html"><span class= "urlWriting">Education</span></a>
45. <p></p>
46. <a href="courses.html"><span class= "urlWriting">Courses</span></a>
47. <p></p>
48. <a href="experience.html"><span class= "urlWriting">Experience</span></a>
49. <p></p>
50. <a href="projects.html"><span class= "urlWriting">Projects</span></a>
51. <p></p>
52. <a href="hobbies.html"><span class= "urlWriting">Other Interests</span></a>
53. <p></p>
54. <a href="Abdul_Raqeeb_Resume.pdf"><span class= "urlWriting">Resume</span></a>
55. <p></p>
56. </td>
57. <td style="border-left: 1px solid blue; padding: 5px;"></td>
58.
59.
60. <td align="left">
61. <p><span class="write">Hello and Welcome to my Home-page !!!</span></p>
62. <p>My name ist Abdul Raqeeb Abdul Azeez and I am a Master's student in Information Sciences program in the
63. <a href="http://www.ischool.pitt.edu"><span class= "urlWriting"><br></br>School of Information Science</span></a> at <a href="http://www.pitt.edu"><span class= "urlWriting">University of Pittsburgh</span></a>.</p>
64. <p>This website that I created as part of the class project would give an insight about my educational background, work history and interests.</p>
65. <p>Feel free to contact me at <a href="mailto:aba27@pitt.edu"><span class= "urlWriting">aba27@pitt.edu</span></a> for any questions or concerns.</p>
66.
67. </td>
68. <td align = "right"><img src="me.jpg" height="345" width="415" alt="me"></img> </td>
69. </tr>
70. </table>
71.
72. <br></br>
73. <hr></hr>
74.
75.
76. <h3>
77. <table width="100%" cellspacing = "0">
78.
79.
80.
81.
82. <tr>
83. <td align="left"><script type="text/javascript">
84. var theDate = ""
85. theDate = document.lastModified
86. document.writeln("This document was last modified ");
87. document.write(theDate);
88. document.write();
89. </script>
90.
91. </td>
92.
93. <td align="center">
94.
95. <a href="mailto:aba27@pitt.edu">Contact Webmaster</a>
96. </td>
97.
98.
99.
100. <td align="right">
101. <a href="http://jigsaw.w3.org/css-validator/check/referer">
102. <img style="border:0;width:88px;height:31px"
103. src="http://jigsaw.w3.org/css-validator/images/vcss-blue"
104. alt="Valid CSS!" />
105. </a>
106. <a href="http://validator.w3.org/check?uri=referer"><img
107. src="http://www.w3.org/Icons/valid-xhtml10-blue"
108. alt="Valid XHTML 1.0 Strict" height="31" width="88"/></a>
109.
110. </td>
111.
112. </tr>
113.
114. </table>
115. </h3>
116. </body>
117. </html>

Recommended Answers

All 5 Replies

I don't know exactly what your problem is. But your code was not valid.

<link></link>
<img></img>
<br></br>
<hr></hr>

From above, they are non-close tags. You must use

<link />
<img />
<br />
<hr />

The input tag has no close tag too. Fix these and validate again. And why did you insert table into the heading tag.
The heading tag was text container, not element container.
You should use DIV.
Fix the above error and try again. If not you success, post here..
Good luck..

hello,
i went through your code in detail and observed that you haven't closed the h1 and h3 tags. that is the reason you get the error message.
also the doctype declaration doesnt need an xml processing instruction at the start so remove the first line from your html code that declares the xml version.

always check your code for tags that are not closed and follow the web standards according to the doctype declaration.

hope this helps.

Thanks... I got the error fixed..I was keeping the table in the h3 field.. i used a div instead

hello,
i went through your code in detail and observed that you haven't closed the h1 and h3 tags. that is the reason you get the error message.
also the doctype declaration doesnt need an xml processing instruction at the start so remove the first line from your html code that declares the xml version.

always check your code for tags that are not closed and follow the web standards according to the doctype declaration.

hope this helps.

Good thing you have figured your problem out but i suggest for future refernce not to use tables Divs make the layout much more simpiler and easier to edit.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.