【例6-1】用ID标记定义CSS样式表实例。
<Html>
<Head>
<Title>ID定义CSS样式</Title>
<Style Type=Text/CSS>
<!
#Number1{fontfamily:隶书;fontSize:28pt;fontstyle:normal;fontweight:bold;color:red}
#Number2{fontfamily:楷书;fontSize:42pt;fontstyle:italic;fontweight:bold;color:blue}
>
</Style>
</Head>
<Body>
<Center>
<P Align=Center id=Number1>这是用ID定义的第-种样式</P>
<P Align=Center id=Number2>这是用ID定义的另一种样式</P>
</Center>
</Body>
</Html>
<Html>
<Head>
<Title>ID定义CSS样式</Title>
<Style Type=Text/CSS>
<!
#Number1{fontfamily:隶书;fontSize:28pt;fontstyle:normal;fontweight:bold;color:red}
#Number2{fontfamily:楷书;fontSize:42pt;fontstyle:italic;fontweight:bold;color:blue}
>
</Style>
</Head>
<Body>
<Center>
<P Align=Center id=Number1>这是用ID定义的第-种样式</P>
<P Align=Center id=Number2>这是用ID定义的另一种样式</P>
</Center>
</Body>
</Html>