为什么要写入文件头header?
在写web(HTML)时,写入表头信息的好处是什么?如下:(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" xml:lang="<?=$gStrAConfig['lang']?>" lang="<?=$gStrAConfig['lang']?>">
<head>
<meta name="Description" content="HELLO WORLD" />
<meta name="Version" content="<?php echo $gStrAConfig['version']?>" />
<meta http-equiv="Content-Type" content="text/html;charset=<?php echo $gStrAConfig['type'][$gStrAConfig['lang']][1];?>" />
<title><?php echo $gStrAConfig['site_title'] ?></title>
<style type="text/css" rel="stylesheet">
<?php require_once( "./css/{$gStrAConfig['css']}" ); ?>
</style>
</head>
请赐教!!!!