mica123 Posted March 17, 2017 Share Posted March 17, 2017 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 More sharing options...
Larry Posted March 18, 2017 Share Posted March 18, 2017 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 More sharing options...
mica123 Posted March 20, 2017 Author Share Posted March 20, 2017 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. Link to comment Share on other sites More sharing options...
Larry Posted March 20, 2017 Share Posted March 20, 2017 I think this goes through HTML4 to HTML5 conversions decently: https://www.w3schools.com/html/html5_migration.asp But HTML5 is very forgiving, so you'll be okay if you miss a thing or two. Link to comment Share on other sites More sharing options...
mica123 Posted March 21, 2017 Author Share Posted March 21, 2017 Many thanks for your help! This topic can now be closed - I am not sure how to close it myself. Link to comment Share on other sites More sharing options...
Recommended Posts