標籤:三種方式 har html5 div checked images 分享 size radio
頁面配置的三種方式:
a、TABLE布局:已淘汰
b、DIV+CSS:當前主流
c、HTML5布局標籤:未來趨勢
1、學產生績表設計
注意:
<body>
<table height="250px" width="600" border="1" align="center" cellpadding="10" rules="all">
<caption align="top">年級成績表</caption>
<tr bgcolor="#ccc" align="center" valign="center">
<th>班級</th>
<th>姓名</th>
<th>年齡</th>
<th>成績</th>
2、簡單的網頁布局
3、簡單網頁架構
注意:主架構
<!DOCTYPE>
<html>
<head>
<title>HTML架構</title>
<meta charset="utf-8">
</head>
<frameset rows="90,*,90" frameborder="1" border="1">
<frame name="top" frameborder="1" src="top.html"/>
<frameset cols="20%,80%">
<frame name="left" src="left.html"/>
<frame name="right" src="right.html"/>
</frameset>
<frame name="bottom" src="bottom.html" />
</frameset>
</html>
4、表單設計
程式:
<form>
帳號:<input type="text" name="name" value="請輸入使用者名稱" size="10" maxlength="5">
<br>
<br>
密碼:<input type="password" name="password" size="5">
<br>
<br>
愛好:<input type="checkbox" name="tiyu" checked="checked">體育<input type="checkbox" name="changge" check="checked">唱歌
<br>
<br>
性別:<input type="radio" name="sex" checked="checked">男<input type="radio" name="sex" checked="checked">女
<br>
<br>
自我介紹:<br>
<textarea cols="35" rows="10" name="ziwojieshao">
這裡是自我介紹
</textarea>
<br>
地址:
<select name="dizhi">
<option>四川</option>
<option>北京</option>
<option>上海</option>
<input type="submit" value="提交">
<input type="reset" value="重設">
<input type="button" value="按鈕">
</form>
HTML入門小執行個體