HTML ±êÇ©
¶¨ÒåºÍÓ÷¨
<!DOCTYPE> ÉùÃ÷λÓÚÎĵµÖеÄ×îÇ°ÃæµÄλÖ㬴¦ÓÚ <html> ±êǩ֮ǰ¡£´Ë±êÇ©¿É¸æÖªä¯ÀÀÆ÷ÎĵµÊ¹ÓÃÄÄÖÖ HTML »ò XHTML ¹æ·¶¡£
¸Ã±êÇ©¿ÉÉùÃ÷ÈýÖÖ DTD ÀàÐÍ£¬·Ö±ð±íʾÑϸñ°æ±¾¡¢¹ý¶É°æ±¾ÒÔ¼°»ùÓÚ¿ò¼ÜµÄ HTML Îĵµ¡£
ÒÔÏÂÃæÕâ¸ö <!DOCTYPE> ±êǩΪÀý£º
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
ÔÚÉÏÃæµÄÉùÃ÷ÖУ¬ÉùÃ÷ÁËÎĵµµÄ¸ùÔªËØÊÇ html£¬ËüÔÚ¹«¹²±êʶ·û±»¶¨ÒåΪ "-//W3C//DTD XHTML 1.0 Strict//EN" µÄ DTD ÖнøÐÐÁ˶¨Òå¡£ä¯ÀÀÆ÷½«Ã÷°×ÈçºÎÑ°ÕÒÆ¥Åä´Ë¹«¹²±êʶ·ûµÄ DTD¡£Èç¹ûÕÒ²»µ½£¬ä¯ÀÀÆ÷½«Ê¹Óù«¹²±êʶ·ûºóÃæµÄ URL ×÷ΪѰÕÒ DTD µÄλÖá£
ÌáʾºÍ×¢ÊÍ£º
×¢ÊÍ£º<!DOCTYPE> ±êǩûÓнáÊø±êÇ©£¡
HTML
HTML 4.01 ¹æ¶¨ÁËÈýÖÖÎĵµÀàÐÍ£ºStrict¡¢Transitional ÒÔ¼° Frameset¡£
HTML Strict DTD
Èç¹ûÄúÐèÒª¸É¾»µÄ±ê¼Ç£¬ÃâÓÚ±íÏÖ²ãµÄ»ìÂÒ£¬ÇëʹÓôËÀàÐÍ¡£ÇëÓë²ãµþÑùʽ±í£¨CSS£©ÅäºÏʹÓãº
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "
http://www.w3.org/TR/html4/strict.dtd">
HTML Transitional DTD
Transitional DTD ¿É°üº¬ W3C ËùÆÚÍûÒÆÈëÑùʽ±íµÄ³ÊÏÖÊôÐÔºÍÔªËØ¡£Èç¹ûÄúµÄ¶ÁÕßʹÓÃÁ˲»Ö§³Ö²ãµþÑùʽ±í£¨CSS£©µÄä¯ÀÀÆ÷ÒÔÖÁÓÚÄú²»µÃ²»Ê¹Óà HTML µÄ³ÊÏÖÌØÐÔʱ£¬ÇëʹÓôËÀàÐÍ£º
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd">
Frameset DTD
Frameset DTD Ó¦µ±±»ÓÃÓÚ´øÓпò¼ÜµÄÎĵµ¡£³ý frameset ÔªËØÈ¡´úÁË body ÔªËØÖ®Í⣬Frameset DTD µÈͬÓÚ Transitional DTD£º
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "
http://www.w3.org/TR/html4/frameset.dtd">
XHTML
XHTML 1.0 ¹æ¶¨ÁËÈýÖÖ XML ÎĵµÀàÐÍ£ºStrict¡¢Transitional ÒÔ¼° Frameset¡£
XHTML Strict DTD
Èç¹ûÄúÐèÒª¸É¾»µÄ±ê¼Ç£¬ÃâÓÚ±íÏÖ²ãµÄ»ìÂÒ£¬ÇëʹÓôËÀàÐÍ¡£ÇëÓë²ãµþÑùʽ±í£¨CSS£©ÅäºÏʹÓãº
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
XHTML Transitional DTD
Transitional DTD ¿É°üº¬ W3C ËùÆÚÍûÒÆÈëÑùʽ±íµÄ³ÊÏÖÊôÐÔºÍÔªËØ¡£Èç¹ûÄúµÄ¶ÁÕßʹÓÃÁ˲»Ö§³Ö²ãµþÑùʽ±í£¨CSS£©µÄä¯ÀÀÆ÷ÒÔÖÁÓÚÄú²»µÃ²»Ê¹Óà XHTML µÄ³ÊÏÖÌØÐÔʱ£¬ÇëʹÓôËÀàÐÍ£º
<!DOCTYP
Ïà¹ØÎĵµ£º
=======<html:messages>============
Action ÖÐ :
ActionMessages message = new ActionMessages();
message.add(" ÏûÏ¢¾ä±ú ",new ActionMessage(" ×ÊÔ´ÎļþÖÐ Key Öµ ",String ÀàÐÍÃèÊöÐÅÏ¢ ));
this.addMessages(request,message);
......
Ç°ÑÔ
×î½ü¹ØÓÚHTML5 ³³µÃ»ðÈÈ£¬ºÜ¶àÈËÈÏΪHTML5³öÏÖ»áÃëɱFlash£¬ÒÔÖÁÓÚÔÚ¸÷´ówebÇ°¶Ë¿ª·¢ÂÛ̳³³µÃ²»¿É¿ª½»¡£ÂÛ̳ÀïÈýÑÔÁ½Óï˵µÄ²»¹»¾¡ÐË£¬Ö»ºÃÔÚ×Ô¼ºÒ»Ä¶Èý·ÖµØÀﳨ¿ªÁË˵˵¡£Ò²µ±Ò»´ÎÉñ¹÷£¬Õ¹ÍûÒ»ÏÂwebÇ°¶Ë¿ª·¢µÄδÀ´¡£
Ê×ÏÈÕâÀïËù˵µÄHTML5Ò²²»½öÖ¸HTML5±¾Éí£¬¶øÊÇ·ºÖ¸HTML5¡¢CSS3¡¢ JavaScriptÒÔ¼°ÐµÄä¯ÀÀÆ÷APIËù°üº ......
ÔÚWebÓ¦ÓóÌÐòÌرðÊÇWeb2.0³ÌÐò¿ª·¢ÖУ¬¾³£Òª»ñÈ¡Ò³ÃæÖÐij¸öÔªËØ£¬È»ºó¸üиÃÔªËصÄÑùʽ¡¢ÄÚÈݵȡ£ÈçºÎ»ñÈ¡Òª¸üеÄÔªËØ£¬ÊÇÊ×ÏÈÒª½â¾öµÄÎÊÌâ¡£ÁîÈËÐÀοµÄÊÇ£¬Ê¹ÓÃJavaScript»ñÈ¡½ÚµãµÄ·½·¨ÓкܶàÖÖ£¬ÕâÀï¼òµ¥×öÒ»ÏÂ×ܽᣨÒÔÏ·½·¨ÔÚIE7ºÍFirefox2.0.0.11²âÊÔͨ¹ý£©¡£
1. ͨ¹ý¶¥²ãdocument½Úµã»ñÈ¡£º
(1)document. ......
http://localhost:8080/tj16/
"/"´ú±í¸ùĿ¼£¬"./" ´ú±íµ±Ç°Ä¿Â¼£¬"../"´ú±íÉϼ¶Ä¿Â¼¡£
·þÎñÆ÷¶ËµÄÏà¶ÔµØÖ·Ö¸µÄÊÇÏà¶ÔÓÚÄãµÄwebÓ¦ÓõĵØÖ·£¬ÊÇÔÚ·þÎñÆ÷¶Ë½âÎöµÄ¡£(http://localhost:8080/tj16/)
htmlÒ³ÃæÖеÄÏà¶ÔµØÖ·¶¼ÊÇÏà¶ÔÓÚ·þÎñÆ÷¸ùĿ¼£¬ÊÇ¿Í»§¶Ëä¯ÀÀÆ÷½âÎöµÄ¡£(http://localhost:8080/)
webapp tj16
i:/test/t ......
asp.net »ñÈ¡html¿Ø¼þµÄÖµµÄ´úÂëÈçÏ£º
WebForm1.aspx£º
< INPUT ID="TXT" TYPE="TEXT" RUNAT="SERVER" VALUE="AAAAAA">
< INPUT TYPE="BUTTON" RUNAT="SERVER" VALUE="BTNTEST" ID="BUTTON1"&nb ......