Our November Competition
User Reviews - Add Yours!
The PCHF Lounge
Go Back   PC Help Forum » Web & Networking » Web Design
Register for a Free Account

Web Design - [Resolved] Errors in code posted in the Web & Networking forums; Hi guys I am currently studying a CIW course, and have come across a problem with writing some code, i have emailed the tutors but cant wait till Monday for ...


Reply
Recommended Driver Scanner
Old 04-22-2006   #1
Bronze Member
 
Join Date: Nov 2005
Posts: 31
Default [Resolved] Errors in code

Hi guys
I am currently studying a CIW course, and have come across a problem with writing some code, i have emailed the tutors but cant wait till Monday for a reply so hopefully someone on here maybe able to help.

I had to copy some text into notepad, then get it validated it came back with 12 errors in there planted by the tutors which i have rectified all but 1

When i write the line

<meta **********="Content-Type" content="text/html; charset=utf-8"/>

I get a error message saying

Namespace "" found, but document type is not XML!

character data is not allowed here.
..."Content-Type" content="text/html; charset=utf-8"/>

I cant for the life of me find a solution to this so if anyone has any input it would be most appreciated Cheers Dave
I have included the complete 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" xml:lang="en">

<head>
<meta **********="Content-Type" content="text/html; charset=utf-8"/>
<meta name="keywords" content="CIW, xhtml 1.0, habitat for humanity"/>
<meta name="Description" content="Simple XHTML page for Habitat Site"/>

<title>Habitat for Humanity International Summer Youth blitz Program</title>
</head>

<body bgcolor="white">

Join a summer Build for Teen-agers. The summer Youth Blitz is a unique service
experience for a diverse group of youth, ages 16 to 18, from high schools and
youth organisations around the United States. This page will validate as XHTML 1.0 Transitional.
</body>
</html>
djk1 is offline   Reply With Quote
Advertisement - Register to Remove
Old 04-23-2006   #2
Bronze Member
 
Join Date: Nov 2005
Posts: 31
Default

Just to let you know i sorted it
PUBLIC"-//
should have been
PUBLIC "-//
I missed the space after public
djk1 is offline   Reply With Quote
Old 04-23-2006   #3
PCHF Founder & Owner
 
Hengis's Avatar
 
Join Date: Jan 2004
Location: The PCHF Bunker
Posts: 14,085
PC Experience: Microsoft Certified Professional
Default

..knew you'd see it..simple huh ?
__________________
Hengis is offline   Reply With Quote

Reply


Bookmarks

Tags
code, errors, Resolved

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On




All times are GMT. The time now is 05:20 AM.
Powered by vBulletin
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2