<ol> <li>General Information <li>Course Outline <li>Textbook and References <li>Schedule and Notes <li>Homework Assignments <li>Course-related On-line Resources </ol>
<ul> <li>General Information <li>Course Outline <li>Textbook and References <li>Schedule and Notes <li>Homework Assignments <li>Course-related On-line Resources </ul>
<dl> <li><dt>WWW <li><dd>World-Wide Web <li><dt>HTML <li><dd>Hyper Text Markup Language <li><dt>URL <li><dd>Uniform Resource Locators <li><dt>CGI <li><dd>Common Gateway Interface </dl>Example:dl.htm
<table> 表格起頭 <tr> 表格列 <th> 表格列標題 <td> 表格列資料 </table> 表格末尾
<table class="main" border="1" summary="Table examples"> <caption>Terms Frequently Used <tr> <th>Acronym <th>Full words </tr> <tr> <td>WWW <td>World-Wide Web </tr> <tr> <td>HTML <td>Hyper Text Markup Language </tr> <tr> <td>URL <td>Uniform Resource Locators </tr> <tr> <td>CGI <td>Common Gateway Interface </tr> </table>
<form> . input 元素 . </form>
看效果:
<form> First name: <input type="text" name="firstname"> <br> Last name: <input type="text" name="firstname"> </form>注意:在大多數瀏覽器中,文本域的預設寬度是20個字符。
<form> Password: <input type="password" name="pwd"> </form>注意:密碼字段字符不會明文顯示,而是以星號或圓點替代。
<form> <input type="radio" name="sex" value="male">Male<br> <input type="radio" name="sex" value="female">Female </form>
<form> <input type="checkbox" name="vehicle" value="Bike">I have a bike<br> <input type="checkbox" name="vehicle" value="Car">I have a car </form>
<form name="input" action="html_form_action.php" method="get"> Username: <input type="text" name="user"> <input type="submit" value="Submit"> </form>
假如您在上面的文本框內鍵入幾個字母,然後點擊提交按鈕,那麼輸入數據會傳送到 "html_form_action.php" 的頁面。 該頁面將顯示出輸入的結果。 使用表單輸入的資料,在後端使用 cgi 、php 或 servlet 等程式處理,結果呈現在前端的網頁。