php文件可以这样写吗? 可以,但是你的《》为什么不是<>? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这是要干嘛 <!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的模板,以后可以套用 [code=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>/code]这样写就可以了 <!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> 因为象html,xhtml可以上网去验证,可是php代码不能验证,所以想有个正确的模板 PHP语法问题请教! 提问 想请教下PHP和ASP里常用代码哪些不同? php方法中能不能获得调用其文件的文件名? mysqli的几个问题 有谁会配置Apache2+PHP5+pgsql+phpPgAdmin??? 100分 紧急求救!关于php连接postgresql问题! 问个菜问题(不小心就会忘记的哦!) 关于环境变量的问题? httpd.conf里的几个问题? Parse error: parse error, unexpected T_VARIABLE, expecting T_STRING in 问题,大家帮满看看 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>
<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>/code]这样写就可以了
<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>