Solarpitch Posted October 18, 2008 Share Posted October 18, 2008 Hey Guys, I have a template set up and am trying to echo the Doc Type as follows: <?php echo " <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>"; ?> The problem I'm having is when I got to validate the page, it tell me that there was no doc type found. I think its something to do with the quotes or something. Do they need to be escaped? I've tried this but not sure If I'm doing it correctly. Link to comment https://forums.phpfreaks.com/topic/128996-solved-problem-when-i-echo-doc-type/ Share on other sites More sharing options...
wildteen88 Posted October 18, 2008 Share Posted October 18, 2008 Use echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'; Link to comment https://forums.phpfreaks.com/topic/128996-solved-problem-when-i-echo-doc-type/#findComment-668747 Share on other sites More sharing options...
Solarpitch Posted October 18, 2008 Author Share Posted October 18, 2008 Great, cheers! Link to comment https://forums.phpfreaks.com/topic/128996-solved-problem-when-i-echo-doc-type/#findComment-668748 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.