HTML入門小執行個體

來源:互聯網
上載者:User

標籤:三種方式   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入門小執行個體

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.