Jump to content

[SOLVED] Problem when I echo Doc Type.


Solarpitch

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.