Jump to content
Larry Ullman's Book Forums

Recommended Posts

In going through this particular edition the HTML pages are supposed to be created with

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

Do I have to input these particular HTML tags - or can they be safely replaced just with <!DOCTYPE HTML><meta http-equiv="content-type" content="text/html; charset=utf-8" />?

 

Thank you.

 

Share this post


Link to post
Share on other sites

Hey! Thanks for the question. In the fourth edition of the book, I was using XHTML syntax, but you can use HTML5 instead, if you'd rather. You'd want to consistently use HTML5, though (e.g., your META tag would not be syntactically correct). You can see some examples of the scripts converted to HTML5 here, for the 5th edition:

 

https://github.com/LarryUllman/phpvqs-5ed

Share this post


Link to post
Share on other sites

Many thanks for your reply!

 

I had a look at some of your scripts and I can see this

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">

Are there any other tags I should be aware of?

 

Thank you.

Share this post


Link to post
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.

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...

×
×
  • Create New...