hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : xhtml error
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

xhtml error

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-04-2005, 11:31 AM
mulligan mulligan is offline
WHT Addict
 
Join Date: Sep 2002
Posts: 115

xhtml error


I am trying to make my pages xhtml strict and have narrowed it down to one error which I can't seem to fix.

Error Line 6 column 66: character data is not allowed here.
...lesheet" type="text/css" href="../css/style.css" />

Here is my Line 6 etc...


<link rel="stylesheet" type="text/css" href="../css/engine.css" />
<link rel="stylesheet" type="text/css" href="../css/bgfull.css" />

Any suggestions would be greatly appreciated.

Reply With Quote


Sponsored Links
  #2  
Old 09-04-2005, 12:10 PM
e-zone e-zone is offline
Junior Guru
 
Join Date: Jul 2003
Posts: 207
Only error i can find is that you have 2 <link rel and no title but that shoulden make that error in w3 valid.

maybe you have an error another place, most likely.

else try this:

<link rel="stylesheet" type="text/css" href="../css/engine.css" title="engine" />
<link rel="alternate stylesheet" type="text/css" href="../css/bgfull.css" title="bgfull" />

Reply With Quote
  #3  
Old 09-04-2005, 12:14 PM
mulligan mulligan is offline
WHT Addict
 
Join Date: Sep 2002
Posts: 115
I thought of that also, but I still get errors...


Error Line 6 column 80: character data is not allowed here.
...="../css/engine.css" title="engine" />
You have used character data somewhere it is not permitted to appear. Mistakes that can cause this error include putting text directly in the body of the document without wrapping it in a container element (such as a <p>aragraph</p>) or forgetting to quote an attribute value (where characters such as "%" and "/" are common, but cannot appear without surrounding quotes).

Reply With Quote
Sponsored Links
  #4  
Old 09-04-2005, 12:19 PM
e-zone e-zone is offline
Junior Guru
 
Join Date: Jul 2003
Posts: 207
You must have an error between

<!DOCTYPE "bla bla">
<html>
<head>
<title>
<meta>
<link rel your stylesheet
</head>

Double Check that part again ^^

<body>

or try remove the red part

../ css/engine.css

Reply With Quote
  #5  
Old 09-04-2005, 12:28 PM
mulligan mulligan is offline
WHT Addict
 
Join Date: Sep 2002
Posts: 115
<!DOCTYPE html PUBLIC "-//www.logidev.net//DTD XHTML 1.1 plus Target 1.0//EN"
"http://www.logidev.net/dtd/xhtml/enginelive_dtd.aspx">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Logidev Networks&trade;</title>
<link rel="stylesheet" type="text/css" href="../css/engine.css" title="engine" />
<link rel="alternate stylesheet" type="text/css" href="../css/bgfull.css" title="bgfull" />


</head>


Last edited by mulligan; 09-04-2005 at 12:34 PM.
Reply With Quote
  #6  
Old 09-04-2005, 12:40 PM
e-zone e-zone is offline
Junior Guru
 
Join Date: Jul 2003
Posts: 207
Does it give you an error if you use the orig doctype tags ?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head>
<title>Logidev Networks™</title>
<link rel="stylesheet" type="text/css" href="../css/engine.css" title="engine" />
<link rel="alternate stylesheet" type="text/css" href="../css/bgfull.css" title="bgfull" />

Reply With Quote
  #7  
Old 09-04-2005, 01:21 PM
mulligan mulligan is offline
WHT Addict
 
Join Date: Sep 2002
Posts: 115
The document located at <http://www.logidev.net/home/compliance.aspx> was checked and found to be tentatively valid XHTML 1.0 Strict. This means that with the use of some fallback or override mechanism, we successfully performed a formal validation using an SGML or XML Parser. In other words, the document would validate as XHTML 1.0 Strict if you changed the markup to match the changes we have performed automatically, but it will not be valid until you make these changes.

Reply With Quote
  #8  
Old 09-04-2005, 01:25 PM
mulligan mulligan is offline
WHT Addict
 
Join Date: Sep 2002
Posts: 115
All fixed...

Just needed to add the correct character encoding.

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

Thanks for your help!

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Rackspace Adds Redis as a Service with Exceptional Cloud Services Acquisition Web Hosting News 2013-04-01 10:55:48
Expired SSL Certificate Brings Down Windows Azure Cloud Web Hosting News 2013-02-25 10:38:00
Internet Infrastructure Firm VeriSign Hit by Multiple Hacks in 2010 Web Hosting News 2012-02-02 16:09:50
Nasuni Report Measures Top Performing Cloud Storage Firms Web Hosting News 2011-12-12 16:43:37
Web Host 1&1 Experiences Server Outage Web Hosting News 2011-09-26 17:29:11


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?