EricaL
12-23-2009, 06:57 PM
Hi all,
I've been trying to validate my page and keep running into the following errors:
Error Line 138, Column 6: end tag for element "div" which is not open
</div>
Line 138, Column 6: XML Parsing Error: Opening and ending tag mismatch: body line 21 and div
</div>
Line 143, Column 7: XML Parsing Error: Opening and ending tag mismatch: html line 3 and body
</body>
I know it is related to my Javascript (when it's removed, the document is valid) but I'm not sure how to go about fixing it. I read something about CDATA sections, however I'm unsure as to how they work and how to input them into my document, or if it is even related to my issue.
Below is my code.
<!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>EricaFTW</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script language="JavaScript1.2" src="js/main.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="css/contentslider.css" />
<script type="text/javascript" src="js/contentslider.js">
/***********************************************
* Featured Content Slider- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
</head>
<body>
<div id="TipLayer" style="visibility:hidden;position:absolute;z-index:1000;top:100;"></div>
<script language="JavaScript1.2" src="js/style.js" type="text/javascript"></script>
<div id="container">
<div id="header">
<img src="images/logo.png" id="logo" alt="" border="0" />
</div>
<div id="nav">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="about.php">About</a></li>
<li><a href="portfolio.php">Portfolio</a></li>
<li><a href="writing.php">Writing</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</div>
<div id="updates">
<object type="application/x-shockwave-flash"
data="flash/slider.swf"
width="500" height="140">
<param name="movie" value="flash/slider.swf" />
<param name="quality" value="high"/>
</object>
</div>
<div id="wrap">
<div id="sidebar">
<?php include("sidebar.php"); ?>
</div>
<div id="content">
<?php
// FanUpdate 2.2.1 blog
// subject: all posts
$main_limit = 2;
require_once('/homepages/13/d263949804/htdocs/erica/FanUpdate/show-blog.php');
?>
</div>
</div>
<div id="footer">
<?php include("footer.php"); ?>
</div>
</div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/ericaftw.json?callback=twitterCallback2&count=1"></script>
</body>
</html>
Validation (http://validator.w3.org/check?uri=http%3A%2F%2Fericaftw.com%2Fv3%2F&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.654)
Direct link to the site (http://ericaftw.com/v3)
Thanks in advance,
Erica.
I've been trying to validate my page and keep running into the following errors:
Error Line 138, Column 6: end tag for element "div" which is not open
</div>
Line 138, Column 6: XML Parsing Error: Opening and ending tag mismatch: body line 21 and div
</div>
Line 143, Column 7: XML Parsing Error: Opening and ending tag mismatch: html line 3 and body
</body>
I know it is related to my Javascript (when it's removed, the document is valid) but I'm not sure how to go about fixing it. I read something about CDATA sections, however I'm unsure as to how they work and how to input them into my document, or if it is even related to my issue.
Below is my code.
<!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>EricaFTW</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script language="JavaScript1.2" src="js/main.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="css/contentslider.css" />
<script type="text/javascript" src="js/contentslider.js">
/***********************************************
* Featured Content Slider- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
</head>
<body>
<div id="TipLayer" style="visibility:hidden;position:absolute;z-index:1000;top:100;"></div>
<script language="JavaScript1.2" src="js/style.js" type="text/javascript"></script>
<div id="container">
<div id="header">
<img src="images/logo.png" id="logo" alt="" border="0" />
</div>
<div id="nav">
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="about.php">About</a></li>
<li><a href="portfolio.php">Portfolio</a></li>
<li><a href="writing.php">Writing</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</div>
<div id="updates">
<object type="application/x-shockwave-flash"
data="flash/slider.swf"
width="500" height="140">
<param name="movie" value="flash/slider.swf" />
<param name="quality" value="high"/>
</object>
</div>
<div id="wrap">
<div id="sidebar">
<?php include("sidebar.php"); ?>
</div>
<div id="content">
<?php
// FanUpdate 2.2.1 blog
// subject: all posts
$main_limit = 2;
require_once('/homepages/13/d263949804/htdocs/erica/FanUpdate/show-blog.php');
?>
</div>
</div>
<div id="footer">
<?php include("footer.php"); ?>
</div>
</div>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/ericaftw.json?callback=twitterCallback2&count=1"></script>
</body>
</html>
Validation (http://validator.w3.org/check?uri=http%3A%2F%2Fericaftw.com%2Fv3%2F&charset=(detect+automatically)&doctype=Inline&group=0&user-agent=W3C_Validator%2F1.654)
Direct link to the site (http://ericaftw.com/v3)
Thanks in advance,
Erica.