目錄
方式1
<html>
<head>
<title>演示</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<h2><font color="#0000FF" face="幼圓">這是標題文本</font></h2>
<p>這裏是正文內容</p>
<h2><font color="#0000FF" face="幼圓">這是標題文本</font></h2>
<p>這裏是正文內容</p>
<h2><font color="#0000FF" face="幼圓">這是標題文本</font></h2>
<p>這裏是正文內容</p>
</body>
</html>
方式2
<html>
<head>
<title>演示</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
h2{
font-family:幼圓;
color:blue;
}
</style>
</head>
<body>
<h2>這是標題文本</h2>
<p>這裏是正文內容</p>
<h2>這是標題文本</h2>
<p>這裏是正文內容</p>
<h2>這是標題文</h2>
<p>這裏是正文內容</p>
</body>
</html>
<html>
<head>
<title>演示</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
h2{
font-family:黑體;
color:red;
}
</style>
</head>
<body>
<h2>這是標題文本</h2>
<p>這裏是正文內容</p>
<h2>這是標題文本</h2>
<p>這裏是正文內容</p>
<h2>這是標題文</h2>
<p>這裏是正文內容</p>
</body>
</html>