Web Hosting Forum | Lunarpages
News: April 3, 2008 - New Contest! - Win 5 Years of Hosting and $1,000!
May 5, 2008 - May 08 Web Site of the Month? - Submit your LINKS!!!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 16, 2008, 12:04:37 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Dreamweaver CS3 Invalid Markup  (Read 1213 times)
Dug
Pong! (the videogame) Master
*****
Offline Offline

Posts: 25


« on: March 07, 2008, 12:39:15 PM »

Hi all,

Ok I'll admit I'm baffeled with this issue.

I keep getting the message
Quote
Marked because it doesn't belong inside the tag it's in.

This is absolute bull, since my code looks absolely fine, and it's been validated by W3C.  The error points to the
Code:
</body></html>
tages at the bottom of my page.  I've noticed this on my other pages too, and my code all looks fine. 

Anyone encountered this issue before?

Cheers

Dug
Logged
Dug
Pong! (the videogame) Master
*****
Offline Offline

Posts: 25


« Reply #1 on: March 07, 2008, 03:57:33 PM »

Ok, I've had to take it line by line, and I've narrowed it down to the following:

Code:

<div id="Login"><!--#include file="../Login.asp" --></div>


and here is the rest of my code:

Code:

<%@ LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>douglasmcgregor.co.uk</title>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="../js/GlobalFunctions.js" type="text/javascript"></script>
</head>
<body>
<div align="center"><img src="../images/title.png" alt="Welcome to douglasmcgregor.co.uk" title="Welcome to douglasmcgregor.co.uk" /></div>
<div align="center"><!--#include file="../includes/NavBar.asp" --></div>
<div id="Login"><!--#include file="../Login.asp" --></div>




</body>
</html>


I just can't see why it would have a problem with this.  When I validate it it comes up with 10 errors.  Am I missing something here?

Cheers

Dug
Logged
jdvernier
Trekkie
**
Offline Offline

Posts: 10


WWW
« Reply #2 on: March 17, 2008, 05:29:22 PM »

Hi Dug,

I would like to preface this post by stating that I am not very proficient in VBScript. But taking a quick look at the code you posted, the first place I would look for problems would be in the NavBar.asp and the Login.asp include files.

If you are getting errors due to the </html> and </body> tags, it is quite possible that those tags got slipped into one of the include files and as a result would force an error when the browser sees the extra set of closing tags after the include files are called.

As I mentioned I am not a VBScript pro, but I have had similar problems in PHP that you spend a day or two wracking the brain over until realizing that you hadn't checked the include files for duplicate tags.

Hope this helps!

John
CIS Admin
Quality Associates International
www.quality-one.com
« Last Edit: March 17, 2008, 05:31:18 PM by jdvernier » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM