#程式1
<HTML>
<BODY bgcolor=#FFEEFF>
	<B>Bold Text</B>
	<BR>
	<I>Italic Text</I>
</BODY>	
</HTML>

#程式2
<HTML>
<STYLE>
 I { font-weight : 700 }
 B { font-weight : 300 }
</STYLE>
<BODY bgcolor=#FFEEFF>
	<B>Bold Text</B>
	<BR>
	<I>Italic Text</I>
</BODY>	

#程式3
typedef struct 
	{
	char* mValueOfColor;
	int   mWeightOfColor;
	char* mValueOfFontSize;
int   mWeightOfFontSize;
	char* mValueOfFontWeight;
int   mWeightOfFontWeight;
/* (以下省略) */
} RStyleObj;

#程式4
RStyleObj_miAddEntry(RStyleObj *styleObj, char* PtyName, 
char* PtyValue, int Weight)
{
if (styleObj->mWeightOfPtyName < Weight)
	{
	styleObj->mValueoOfPtyName = PtyValue;
}
}

#程式5
<HTML>
<Head>
<Title> Bach’s homepage </Title>
<Link rel=”stylesheet” href=”bach.css” type=”text/css”>  
<Style type=”text/css”>                        		   
   Body   {color: red}					 		    
   H1     {color: blue}                  		 	     
   A      {color: yellow}              			    
</Style>                             	   		   
</Title>
</Head>
<Body>
  <H1>Bach’s homepage </H1>
  <A style=”color: green”> Link to other place </A>       			
</Body>
</HTML>

#程式6
enum {/* font-weight */
	CSS_FONT_WEIGHT_NORMAL=1,
	CSS_FONT_WEIGHT_BOLD,
	CSS_FONT_WEIGHT_BOLDER,
	CSS_FONT_WEIGHT_LIGHTER,
	CSS_FONT_WEIGHT_100,
	CSS_FONT_WEIGHT_200,
	…,
	CSS_FONT_WEIGHT_900
};

#程式7
	<TABLE BORDER=5>
		<TR>
			<TH>This is a Header Cell</TH>
		</TR>
		<TR>
			<TD>This is a Normal Cell</TD>
		</TR>
	</TABLE>

#程式8
<TABLE BORDER=3>
		<CAPTION> A test table with merged cells</CAPTION>
		<TR>
			<TH rowspan="2"></TH><TH colspan=2>Average</TH>
			<TH rowspan="2">Red<BR>eyes</TH>
		<TR>
			<TH>height</TH><TH>weight</TH>
		<TR>
			<TH>Males</TH><TD>1.9</TD><TD>0.003</TD><TD>40%</TD>
		<TR>
			<TH>Females</TH><TD>1.7</TD><TD>0.002</TD><TD>43%</TD>
</TABLE>