html³õ²½Ñ§Ï°±Ê¼Ç
html ÍøÒ³ÃèÊöÓïÑÔ
htmlµÄ»ù±¾¿ò¼Ü
<head> //±êǩͷ
<javacript> //´úÂë¿ØÖÆ°üº¬
function test()
{
//º¯ÊýÄÚÈÝ
}
</javacript>
<body> //ÍøÒ³ÏÔʾµÄÄÚÈÝÔÚ<body>ÀïÃæ¿ØÖÆ
<form> //±íµ¥ÔªËØ
</form>
</body>
</head>
Ïà¹ØÎĵµ£º
dp.SyntaxHighlighter
dp.SyntaxHighlighter£¬Õâ¶«Î÷yahoo¶¼ÔÚÓÃËü£¬Ö§³Ö¶àÖÖÓïÑÔ¡£
Ö»ÐèÒª½«´úÂë·Åµ½<textarea>±êÇ©ÄÚ£¬Ëü¾Í¿ÉÒÔ×Ô¶¯¸ù¾ÝclassÖ¸¶¨µÄÓïÑÔÀ´¶ÔtextareaÄÚÈݽøÐÐ×ÅÉ«£¬»¹ÌṩÁËÐкš¢´òÓ¡µÈ¹¦ÄÜ¡£È磺
Xml´úÂë
<TEXTAREA class=java name=code><br/> // code here ......
<! - - ... - -> ×¢½â
<!> ÅÜÂíµÆ
<marquee>...</marquee>ÆÕͨ捲¶¯
<marquee behavior=slide>...</marquee>»¬¶¯
<marquee behavior=scroll>...</marquee>Ô¤Éè捲¶¯
<marquee behavior=alternate>...</marquee>À´»Ø捲¶¯
<marq ......
.net ¹¦ÄÜÊ®·ÖÇ¿´ó£¬Æäʵ¿ÉÒÔÖ±½ÓÔÚÀïÃæÐ´Ò»Ð©htmlµÄ´úÂ룬±ÈÈçÏñÕâÑù
<asp:CheckBox ID="checksingup" runat="server" Text='I have read and agree to <a href="abc.aspx">This is ABC web</a>' onclick="ValidateTandCs" />
ÕâÖÖ¿ÉÒÔÓÃÓÚ×¢²áʱµÄ³¬Á´½Óµ½±ðµÄµØ·½£¬µ±È»¿ÉÒÔ·¢»ÓÏëÏñ£¬Ë ......
ÏÂÃæÊÇÒ»¸ö¹ýÂËhtmlÔªËØµÄ³ÌÐò£¬Ò²Ðí¶Ô´ó¼ÒÓеã°ïÖú£¡
/**
* filter all html element.
* For example:<a href="www.sohu.com/test">hello!</a>
* The filter result is :hello!
  ......