Code error

joogleberry

New Member
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, planted by the tutors which i have rectified all but 1

When i write the line

<meta http-equiv="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 http-equiv="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>
 

1LineDesign

New Member
Try the following:

<!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=iso-8859-1" />
<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="#FFFFFF">
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>

Kindest regards,
1Line Design
http://www.1linedesign.com/
 

joogleberry

New Member
Hi line1 Design thanks for the suggestion
but i re-read my text for about the 10th time and realised

PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN"
Should have been
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

I missed the space after PUBLIC
its amazing how such a small mistake can screw the hole thing up
Thanks again you were the only 1 out of 4 forums to reply.
Dave.
 
Top