HTML 基礎標籤demo

table標籤,和tr,td配合使用,  <tr> 換行 <td> 單元格 border 表格的邊框寬度

form 表單

<input type = "text"> 輸入框

<input type = "radio" name = "sex"> 單選框

<input type = "submit" value = "提交">  按鈕,


具體代碼如下

<!Doctype html>
<html lang = "zh-CN">

	<head>
		<title>這裏是顯示錶單和table</title>

		<meta charset = "utf-8">
		<meta name = "description" content = "這裏是描述信息">
		<meta name = "keywords" content = "keywords">

	</head>

	<body>

		<h1>這裏是顯示table和form 表單的page</h1>

		<table border = "1">

			<tr>

				<td>姓名</td><td>性別</td><td>科目</td><td>成績</td>

			</tr>
			<tr>

				<td>小明</td><td>男</td><td>數學</td><td>99</td>

			</tr>
			<tr>

				<td>小明</td><td>男</td><td>數學</td><td>99</td>

			</tr>
			<tr>

				<td>小明</td><td>男</td><td>數學</td><td>99</td>

			</tr>

		</table>

		<form>

			姓名:<input type = "text"><br>
			性別:
				男:<input type = "radio" name = "sex">
				女:<input type = "radio" name = "sex">
					<br>
				<input type = "submit" value = "註冊">
		</form>

		<iframe width = "1024" height = "798" src = "day001.html">

	</body>

</html>

<iframe src = "day001.html"> 在當前網頁,插入其他網頁的信息.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章