The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

html

total nurd- just wanted to ask how come i got the 1st 2 lines of html of the Most Basic Web Page in the World on top of the screen when i brought the saved page back from folder?
following ian lloyds book using windows xp/notepad/IE
thanks bjp

I don't know exactly what the problem is, but I have found that when someting appears in the wrong place it's often because the mark-up isn't nested correctly. For example

HTML Code:

<table><tr>This should be in the table
<td>some more text</td></tr></table>

The "This should be in the table" might appear anywhere depending on how the browser "guesses" where to put it.

I doubt if your problem is like the example, but if you go to the validator http://validator.w3.org/#validate_by_input and paste in the page's code and click check, you may get a helpful error message. If not please post the mark-up here.

I have the free sample chapters of version 1 of the book, and I don't have the files from the code archive. But the code in the book isbasic.html

HTML Code:

<!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><title>The Most Basic Web Page in the World</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><h1>The Most Basic Web Page in the World</h1><p>This is a very simple web page to get you started.
Hopefully you will get to see how the markup that drives
the page relates to the end result that you can see on
screen.</p><p>This is another paragraph, by the way. Just to show how it
works.</p></body></html>