php文件可以这样写吗?
我写了个php模板文件,我想可以这样写吗?请看:
《!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"》
《html xmlns="http://www.w3.org/1999/xhtml"》
《head》
《title》标题-CSS网模板《/title》
《meta http-equiv="Content-Type" content="text/html; charset=gb2312" /》
《meta name="keywords" content="关键字" /》
《meta name="description" content="关键字描述" /》
《link href="css文件路径" rel="stylesheet" type="text/css" /》
《script type="text/javascript" src="JS文件路径"》《/script》
《/head》
《body》
《?php echo "《p》Hello World《/p》"; ?》
《/body》
《/html》 《?php echo "《p》Hello World《\/p》"; ?》 可以没问题吧
页:
[1]