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.

 

Link to comment
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

Link to comment
Share on other sites

 Share

×
×
  • Create New...