HTML Examples


  1. HTML文件基本架構 <html> <head> <title>HTML Document</title> </head> <body> HTML文件基本架構 </body> </html> 顯示上述結果

  2. body <body bgcolor="DARKGREEN" text="yellow" link="#FFAAAA" alink=#aaaaff vlink=AAffbb> <body background="mcu-bg.gif" text="yellow" link="#FFAAAA" alink=#aaaaff vlink=AAffbb> BODY Example 1 BODY Example 2
    背景圖庫

  3. Color

  4. meta <meta http-equiv="Content-Type" content="text/html; charset=big5"> <meta http-equiv="expires" content="Fri, 9 Oct 1998 18:21:57 GMT"> <meta http-equiv="Refresh" content="4;URL=http://www.mcu.edu.tw"> <meta http-equiv="Refresh" content="900"> <meta http-equiv="Set-Cookie" content="cookievalue=xxx;expires=Wednesday, 21-Oct-98 16:14:21 GMT; path=/"> <meta name="keywords" content="WWW, HTML, JavaScript, Java, CGI"> <meta name="description" content="This page is a document for HTML examples">

  5. 文字格式/樣式font

  6. 文件格式化 (Format)br center hr

  7. 區塊(Block)blockquote div h1 ~ h6 p pre xmp

  8. 清單(List)dl dt dd ol ul li

  9. 超連結(Anchor, Link)a <a id="section2">Section 2</a> <a href="../html/links.htm" target="HTML Examples">超連結(Anchor, Link)</a> <a href="http://www.im.ncnu.edu.tw/">www.ncnu.edu.tw</a>

  10. 圖片(Image)img area map

  11. 表格(Table)table caption tr td th

  12. 輸入表單(Form): form input select option textarea
    範例一 範例二 範例三

  13. Frame: frame frameset noframes iframe <html> <head> <title>Simple Frame Set Example</title></head> <frameset cols="20%,80%" border="10"> <frame src="simpltoc.htm" NAME="exampletoc"> <frame src="forms.htm" NAME="examplecontent"> <noframes>You must use a browser that can display frames to see this page. </noframes> </frameset> </html> 顯示上述結果

    <html><head><title>Frame Set Example</title></head> <frameset cols="20%,*"> <noframes>You must use a browser that can display frames to see this page. </noframes> <frame src="frametoc.htm" id="noname"> <frameset rows="30%,*"> <frame src="frtoc1.htm" id="toptoc"> <frame src="frstart.htm" id="outer"> </frameset> </frameset> </html> 顯示上述結果