HTML 输入:复选框

<div class="checkbox"><input type="checkbox" id="$1" name="$1" ${2:checked="checked"} /><label for="$1">$3</label></div>$4

HTML 输入:广播

<div class="radio"><input type="radio" name="$1" id="2" ${3:checked="checked"} /><label for="$1">$4</label></div>$5

HTML 输入文件

<div class="file"><label for="$1">$2:</label><input type="file" id="$1" name="$1" /></div>$3

HTML 选择

<div class="dropdown"><label for="$1">$2:</label><select id="$1" name="$1">
	<optgroup label="$3">
		<option value="$4" ${5:selected="selected"}>$6</option>
		<option value="$7">$8</option>
	</optgroup>
</select></div>

HTML 多种选择:无线电

<fieldset class="multichoice">
	<legend>$1</legend>
	<div class="radio"><input type="radio" name="$2" id="$3" /><label for="$3">$4</label></div>
	<div class="radio"><input type="radio" name="$2" id="$5" /><label for="$5">$6</label></div>
	<div class="radio"><input type="radio" name="$2" id="$7" /><label for="$7">$8</label></div>$9
</fieldset>

HTML 多项选择:复选框

<fieldset class="multichoice">
	<legend>$1</legend>
	<div class="checkbox"><input type="checkbox" id="$2" name="$2" /><label for="$2">$3</label></div>
	<div class="checkbox"><input type="checkbox" id="$4" name="$4" /><label for="$4">$5</label></div>
	<div class="checkbox"><input type="checkbox" id="$6" name="$6" /><label for="$6">$7</label></div>$8
</fieldset>

HTML 自动增量功能

function mysql_autoid($id,$table){
    $query = 'SELECT MAX('.$id.') AS last_id FROM '.$table;
    $result = mysql_query($query);
    $result = mysql_fetch_array($result);
    return $result[last_id]+1;
}

// usage mysql_autoid('nID','news');
// for use with fields that don't have auto_increment enabled
// otherwise just use $last_id = mysql_insert_id(); following a successful INSERT

HTML

<table cellSpacing=10 cellPadding=10 align=center background=border=2><br />
<tbody><br />
<tr><br />
<td><br />
<table cellSpacing=10 cellPadding=10 align=center bgColor=#000000 border=2> <tbody><br />
<tr><br />
<td><br />
<table cellSpacing=10 cellPadding=10 align=center bgColor=#000000 background=http://farm1.static.flickr.com/208/517701026_1bdf2bccd4_o.gif border=2> <tbody><br />
<tr><br />
<td bgColor=#989898><br />
<div style="TEXT-ALIGN: center"><br />
<br />
ENTER TEXT HERE</div><font face="Lucinda MS"><font color=#ffffff><br />
<div style="TEXT-ALIGN: justify"></div><br />
</font></font></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table> <div></div> <div></div> <div class=foot></div>

HTML xHTML严格的Doctype页面标题

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Untitled</title>
        <link rel="stylesheet" type="text/css" href="style/global.style.css" />
    </head>
    <body>

    </body>
</html>

HTML IE修复

<!--[if gt IE 6]>
      <link rel="stylesheet" type="text/css" href="ie7fix.css" media="screen" />
      <meta http-equiv="imagetoolbar" content="no" />
<![endif]-->
<!--[if lte IE 6]>
      <link rel="stylesheet" type="text/css" href="ie6fix.css" media="screen" />
      <meta http-equiv="imagetoolbar" content="no" />
<![endif]-->