Viewing basic web page

Hi guys - really easy question from a beginner…

Am reading the ‘building your own web site the right way’ 2nd edition. Really appreciating the easy to understand style. However, I have typed the code into notepad and opened with firefox, but it displays like this -

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="">
	<title>The Most Basic Web Page in the World</title>
	<meta http-equiv="Content-Type"
		content="text/html; charset=utf-8"/>
    <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 th end result that you can see on          screen,</p>  
    <p>  This is another paragraph, by the way. Just to show how it 

I have copied in other code and the same thing happens.
Please Help!! What am I doing wrong?

hammmondo, did you remember to save the file as a .html document? What probably happened is it defaulted to saving as a .txt text file, if you have the file opened in notepad and go to file > save as > in document type use “All files (*)” and then proceed to use the filename with a .html extension… this should when loaded in your browser display as you expected. You could also rename the file by changing the extension to .html (if you have file extensions set to show in the folder options) :slight_smile:

Thanks alex. this did the trick. Thanks very much indeed. H