3-1 ?—表 (Lists)

¦b HTML ¤å¥ó¤¤¡A§Ú­Ì¥i¥Î¤U¦C¤TºØ¤èªk¨Ó¦Cªí¡G ¥H¤U§Ú­Ì±N¥Î½d¨Ò¨Ó¤À§O»¡©ú¡C

µL§Ç¦Cªí¡]Unordered list¡^¬O¥Î <ul> ¼ÐÅÒ¨Ó¹F¦¨¡A¨Ò¦p¡G

Example¡]list01.htm¡^¡G

¤W­z½d¨Òªº§¹¾ã­ì©lÀɮצp¤U¡G

­ì©lÀÉ¡]list01.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<HTML>
<HEAD>    
	<TITLE> µL§Ç¦Cªí¡G°ò¥»®æ¦¡ </TITLE>
</HEAD>
<BODY>

®Ü¯ù§÷®Æ¡G
<ul>
<li>®Ü¤l34Áû
<li>­»¦N¤hÅøÀY¤Ö³\
<li>ÂfÂc¥b­Ó
<li>±ö¤l12Áû¡]¥i©ñ¥i¤£©ñ¡^
</ul>
§@ªk¡G®Ü¤l¤Á¥b·c¥Ä¡BÂfÂc·c¥Ä¡A¥[¤J§÷®Æ»P¬õ¯ù¥]¡A¨R¼ö¤ô§Y¥i¡C

</BODY>
</HTML>

¦b¤W­z½d¨Ò¤¤¡A¨C¤@µ§¸ê®Æ¤§«e³£¦³­Ó¤p¶ÂÂI¡A¥Nªí¨C¤@µ§¸ê®Æªº´£¥Ü²Å¸¹¡A§Ú­Ì¥i¥H§ïÅÜ type ªºÄÝ©Ê­È¡A¨Ó¿ï¥Î¤£¦Pªº´£¥Ü²Å¸¹¡A¨Ò¦p¡G

Example¡]list02.htm¡^¡G

¤W­z½d¨Òªº§¹¾ã­ì©lÀɮצp¤U¡G

­ì©lÀÉ¡]list02.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<HTML>
<HEAD>    
	<TITLE> µL§Ç¦Cªí¡G§ïÅÜ´£¥Ü²Å¸¹ </TITLE>
</HEAD>
<BODY>

<ul type=disc>
<li>¥Ñ type=disc ¡]¹w³]­È¡^©Ò²£¥Íªº¦Cªí
</ul>
<ul type=circle>
<li>¥Ñ type=circle ©Ò²£¥Íªº¦Cªí
</ul>
<ul type=square>
<li>¥Ñ type=square ©Ò²£¥Íªº¦Cªí
</ul>

</BODY>
</HTML>

¦pªG§Ú­Ì¦bµL§Ç¦Cªí¤º¦A©ñ¤JµL§Ç¦Cªí¡A´N·|§Î¦¨±_ª¬¦¡ªºµL§Ç¦Cªí¡A¦¹®ÉÂsÄý¾¹·|¦Û°Ê¿ï´«´£¥Ü²Å¸¹¡A¨Ò¦p¡G

Example¡]list06.htm¡^¡G

¤W­z½d¨Òªº§¹¾ã­ì©lÀɮצp¤U¡G

­ì©lÀÉ¡]list06.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<HTML>
<HEAD>    
	<TITLE> µL§Ç¦Cªí¡G¦h¼h </TITLE>
</HEAD>
<BODY>

<ul>
<li>²MµØ¤j¾Ç
	<ul>
	<li>¸ê°T¨t
		<ul>
		<li>¤j¾Ç³¡¤@¦~¯Å
		<li>¤j¾Ç³¡¤G¦~¯Å
			<ul>
			<li>²M¯Z
				<ul>
				<li>¨k¥Í
				<li>¤k¥Í
				</ul>
			<li>µØ¯Z
			</ul>
		<li>¤j¾Ç³¡¤T¦~¯Å
		<li>¤j¾Ç³¡¥|¦~¯Å
		</ul>
	<li>¹q¾÷¨t
	</ul>
<li>¥æ³q¤j¾Ç
<li>¥xÆW¤j¾Ç
</ul>

</BODY>
</HTML>

¦Ü©ó¦³¶¶§Ç©Êªº¦Cªí©Î²M³æ¡A»Ý­n²K¥[§Ç¸¹ªº¡A§Ú­Ì¥i¥H¥Î¦³§Ç¦Cªí (Ordered List) ¨Ó³B²z¡A¨Ò¦p¡G

Example¡]list03.htm¡^¡G

¤W­z½d¨Òªº§¹¾ã­ì©lÀɮצp¤U¡G

­ì©lÀÉ¡]list03.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<HTML>
<HEAD>    
	<TITLE> ¦³§Ç¦Cªí¡G°ò¥»®æ¦¡ </TITLE>
</HEAD>
<BODY>

¦B®Ü¯ù§@ªk:
<ol>
<li>®Ü¤l4Áû(¶W¥«¦³½æªº¤pÁû®Ü¤l)
<li>¤Á¥bÀ½¥Ä¨ì³·§JªM¤¤
<li>¥[¤J
	<ol type="a">
	<li>¬h¾í¿@ÁY¥Ä
	<li>¦Ê­»ªG¿@ÁY¥Ä
	<li>¸Á»e
	</ol>
<li>¥[¤J¥ß¹y¬õ¯ù¥]ªwªº¤@¤pªM¯ù
<li>¦b°u¶q¥[¤J¦B¶ô³·§J¦n´NOK!
</ol>

</BODY>
</HTML>

¦b¤W­z­ì©l½X¤¤¡A§Ú­Ì¨Æ¹ê¤W¥Î¤F¨â­Ó¦³§Ç¦Cªí¡A²Ä¤@¼h¬O¥Î¼Æ¥Ø¦r 1¡B2¡B3 ¨Ó½s¸¹¡A²Ä¤G¼h«h¬O¥Î­^¤å¦r¥À a¡Bb¡Bc ¨Ó½s¸¹¡C¼Æ¥Ø¦r¬O¹w³]ªº½s¸¹¤èªk¡A­Y­n¿ï¥Î¤£¦Pªº½s¸¹¤èªk¡A¥u»Ý­n¦b type ³]©w¤£¦PªºÄÝ©Ê­È´N¥i¥H¤F¡A¥i¥Îªº type ÄÝ©Ê­È¥i»¡©ú¦p¤U¡G

¦¹¥~¡ATYPE Äݩʤ]¥i¥H¥Î¦b <li> ¼ÐÅÒ¡A¦p¤U¡G

Example¡]list04.htm¡^¡G

¤W­z½d¨Òªº§¹¾ã­ì©lÀɮצp¤U¡G

­ì©lÀÉ¡]list04.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<HTML>
<HEAD>    
	<TITLE> ¦³§Ç¦Cªí¡G§ïÅܽs¸¹¤è¦¡ </TITLE>
</HEAD>
<BODY>

<ol>
<li type="A">
    ³]©w´£¥Ü²Å¸¹¬°¤j¼g¦r¥À
<li type="a">
    ¶¶§Ç¤£Åܦý´£¥Ü²Å¸¹Åܦ¨¤p¼g
<li>¨S¦³³]©w«h¦^¨ì¹w³]­È¡]§Yªü©Ô§B¼Æ¦r¡^
<li type="1" value="10">
    §ïÅÜ´£¥Ü²Å¸¹¬°¼Æ¦r¥B¼Æ­È¥Ñ10¶}©l
</ol>

</BODY>
</HTML>

¦b¤W¨Ò¤¤¡A§Ú­Ì¨Ï¥Î¤F¥t¤@­ÓÄÝ©Ê value ¨Ó¥ß§Y§ïÅܬY¤@µ§¸ê®Æªº½s¸¹¡C

¥t¤@­Ó±`¥Îªº¦Cªí¤è¦¡¡A´N¬O©w¸q¦Cªí¡]Definition Lists¡^¡A¨ä¥\¯à´N¹³¬O¦b©w¸q¤@°ï¯S®í¦Wµü¡A¨Ò¦p¡G

Example¡]list05.htm¡^¡G

¤W­z½d¨Òªº§¹¾ã­ì©lÀɮצp¤U¡G

­ì©lÀÉ¡]list05.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<HTML>
<HEAD>    
	<TITLE> ©w¸q¦Cªí¡G°ò¥»®æ¦¡ </TITLE>
</HEAD>
<BODY>

©ú½¦ªº¦¨¥÷¤À¬°¨âºØ¡G
<dl>
<dt>°Êª«½¦ (Gelatin)
<dd>¥Ñ°Êª«°©ÀfÃö¸`¥H»ÄµÑ¨ú¤§¡A¬G»Ä©Ê»á°ª¡A¤£¾A¦X¥Î©ó¬õ¯ù­á¡C¦ý±`¥Î©ó¼}¥q¡B°_¤h³J¿|¤§Ãþ¡C¥«°â¦³¯»ª¬¡B¤ùª¬¡C
<dt>®ü¯ó½¦ (Jelly T)
<dd>¥Ûªáµæ (Agar) ªººë·Òª«¡A´Óª«©Ê¡A¥i¥Î¦b¯À­¹ªº§÷®Æ¤W¡C¾A¦X¬õ¯ù¡B©@°Ø¡B¤ôªG­á¡C
</dl>

</BODY>
</HTML>

¨ä¤¤¡A<dt> ¥Nªí¡u³Q©w¸qªº¦Wµü¡v¡]Definition Term¡^¡A<dd> ¥Nªí¡u»¡©úªº¤å¦r¡]Definition Data¡^¡A³o¨âªÌ¥²¶·¦¨¹ï¥X²{¡C

¥H¤U¬O¸ÕÅç°Ï¡A§A¥i¥Hª½±µ¶ñ¤J HTML ªº¤º®e¡A«ö¡u°e¥X´ú¸Õ¡v«á¡A§Y¥i¦b·sºô­¶¬Ý¨ì§e²{ªºµ²ªG¡C

Example¡]htmlTestList.htm¡^¡G


HTML ²¤¶»PÀ³¥Î