Web Design Forum: feel like starting again - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

feel like starting again changed from html to xhtml...errors!

#1 User is offline   leaaa 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 58
  • Joined: 14-March 09
  • Reputation: 0
  • Experience:Nothing
  • Area of Expertise:Designer

Posted 04 May 2009 - 11:33 AM

Hi

I had my webste all sorted out for my assignment. I just read something maybe I should have noticec a while ago!
My website was HTML 4.0 and i've now had to change it to XHTML 1.0.. this has caused me 37 errors all of which I have to sort out for my assignment. Problem is, i dont even know where t start because i have no idea what half of them are!



Ive tried changing them but its messed it up more lol.

Can anyone help? x

Update:

Ive sorted some of the HTML out and got it down to 13 errors! phewwwf!
0

#2 User is offline   ELITE 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 753
  • Joined: 30-March 08
  • Reputation: 0
  • Gender:Male
  • Location:stoke on trent
  • Experience:Intermediate
  • Area of Expertise:Coder

Posted 04 May 2009 - 11:38 AM

View Postleaaa, on May 4 2009, 12:33, said:

Hi

I had my webste all sorted out for my assignment. I just read something maybe I should have noticec a while ago!
My website was HTML 4.0 and i've now had to change it to XHTML 1.0.. this has caused me 37 errors all of which I have to sort out for my assignment. Problem is, i dont even know where t start because i have no idea what half of them are!

validator results

Ive tried changing them but its messed it up more lol.

Can anyone help? x

back up your old page and try this

<!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">
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" />
<title>Leanne Orr's Personal Website</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="practice.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="top">
<h1>Leanne Orr</h1>
</div>
<div id="submenu">
<div id="menuh"><a href="http://www.numyspace.co.uk/%7Eunn_t005763/" class="top_parent">Homepage</a> <a href="http://www.numyspace.co.uk/%7Eunn_t005763/about.html" class="top_parent">About me</a> <a href="http://www.numyspace.co.uk/%7Eunn_t005763/achievements.html" class="top_parent">Achievements</a> <a href="http://www.numyspace.co.uk/%7Eunn_t005763/myvideos.html" class="top_parent">My videos</a></div>
</div>
<div id="leftnav"><img src="http://www.numyspace.co.uk/~unn_t005763/images/leanneandfriends.jpg" alt="leanne and friends" /></div>
<div id="content">
<h2>Welcome to my personal website</h2>
<p>I have created this personal website for an assignment I have been given under one of my modules at University.<br />
This website details my life, and it also contains an extra page on a knowledgeable subject that I have studying and added as part of my assignment.<br />
<br />
Here I will showcase my interests, hobbies, photographs and videos. All of the images and videos on this website have been taken by me.<br />
<br />
I hope that you enjoy viewing this website.<br />
Thanks<br />
Leanne</p>
</div>
<div id="footer">
<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88" /></a></p>
</div>
</div>
</body>
</html>


on the validator you will see the tidy up check box this will clean your html up your doc type is set to strict in the html above

hope this helps
0

#3 User is offline   leaaa 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 58
  • Joined: 14-March 09
  • Reputation: 0
  • Experience:Nothing
  • Area of Expertise:Designer

Posted 04 May 2009 - 11:45 AM

Hey, i've just tried this and it passed! But it has to be transitional :( sorry i didnt mention it in my first post x
0

#4 User is offline   bocaj 

  • The First Messiah of Javology
  • PipPipPipPipPip
  • View gallery
  • Group: Members
  • Posts: 3,383
  • Joined: 11-January 09
  • Reputation: 99
  • Gender:Male
  • Location:The West Country.
  • Experience:Web Guru
  • Area of Expertise:Entrepreneur

Posted 04 May 2009 - 11:48 AM

Strict will pass as transitional, just swap the doctype.

Transitional is just a more relaxed version of strict.

It's html and xhtml that have there differences, mainly the self closing elements />

So change

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">


To this

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


And it should be fine (:
0

#5 User is offline   leaaa 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 58
  • Joined: 14-March 09
  • Reputation: 0
  • Experience:Nothing
  • Area of Expertise:Designer

Posted 04 May 2009 - 12:00 PM

ooo thanks :) x
0

#6 User is offline   NeRo 

  • Expert
  • PipPipPipPip
  • Group: Members
  • Posts: 819
  • Joined: 28-September 07
  • Reputation: 38
  • Gender:Male
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 04 May 2009 - 12:51 PM

I would take out the references to

<meta name="generator" content="HTML Tidy for Linux (vers 6 November 2007), see www.w3.org" />


and

<p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88" /></a></p>


Your lecturer might object to the use of HTML tidy, having expected you to do the coding.

p.s. please let us know what mark we got for our assignment ;) :D
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users