Search the Community
Showing results for tags 'doctype'.
mica123 posted a topic in PHP for the Web: Visual QuickStart Guide (4th Edition)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.
Larry says in his book that not using 'head' creeps him out. I have to say that <!doctype html> is doing the same to me. Firstly, it is highlighted red in my text editor (SciTE). Secondly, what does an old (e.g. 2010) browser do with it?....treat it as strict? Transitional? Can it handle frames? Will it go into quirks mode? Thirdly, when using this with utf-8 a number character (as in Nº) became a smiley face on my website. I've now changed it to 'N°' I think I understand what the old coding did (e.g. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">) ...that it was telling the browser how to interpret the html from the server in a certain way and I was sort of comfortable with that, but the new one seems too SHORT!