mica123 0 Posted March 17, 2017 Report 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. Quote Link to post Share on other sites
Larry 428 Posted March 18, 2017 Report 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 Quote Link to post Share on other sites
mica123 0 Posted March 20, 2017 Author Report 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. Quote Link to post Share on other sites
Larry 428 Posted March 20, 2017 Report 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. Quote Link to post Share on other sites
mica123 0 Posted March 21, 2017 Author Report 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. Quote Link to post Share on other sites
Recommended Posts
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.