Jump to content
Larry Ullman's Book Forums

Recommended Posts

Ok I have been trying to work why my script that I have written out of the book. It is on page 4. When I test it. it comes up as html script.

Here is the script.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3c.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<title>Welcome To this Page! </title>

<head>

<body>

<h1>This is a basic XHTML page!</h1>

<br />

<p>Even with <span style="font-size:150%;">some</span> decoration, it's still not very exciting.</p>

</body>

</html>

Thank you.

ljstott.

Link to comment
Share on other sites

The book gives you the script to do with a text editor. then you are to test the script and see if come up the same as the book shows you. In the browser I open it up from file and open the go to the file that has the script in it.

Here is the url that I have.

C:\PHP\Chapter 1\welcome.html.txt

the text editor I was using was pspad. it is a free text editor.

Link to comment
Share on other sites

Ok I installed conTEXT and redid the program and it has work well almost.

this one line of text came up.

eta http-equiv="content-type" content="text/html; charset=utf-8/>

I saved it as a html document not as a text.

I am real happy with what has happen here.

One line out of 13 is really good for someone that never did programming before.

the line of script is where the header of the page is to go.

Link to comment
Share on other sites

you are right I did miss <. When I looked at what the script was and saw the mistake and made the changes. it now work. Here is the script.

 

<!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" lang="en">

<head>

<meta http-equiv="content-type" content="text/html; charset=utf-8" />

<title>Welcome to this page!</title>

</head>

<body>

<h1>this is a basic XHTML page!</h1>

<br />

<p>Even with <span style="font-size:150%;">some</span> decoration, it's still not very exciting.</p>

</body>

</html>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...