1
表單是一個包含表單元素的區域。
表單元素是允許用戶在表單中輸入內容,比如:文本域(textarea)、下拉列表、單選框(radio-buttons)、復選框(checkboxes)等等。
表單使用表單標簽 <form> 來設置:
寫法為;<input type="text" name=“” value=“”>用戶名
<input type="password‘’ name=“” value="'>密碼
<input type="checkbox“” name=“” value="'>復選框
<input type="radio“” name=“” value="'>單選框
<input type="hidden“” name=“” value="'>隱藏框
<select name="‘ ’id=""> <option value></option>下拉列表框
<textarea name=">文本域
<input type="file">打開文件
<input type="reset“” name=“” value="'>重置
<input type="submit“” name=“” value="'>提交
2 frame框架的組成一個頁面如果拆分左右或者上下兩個,左右結構的話是cols 上下結構的話是rows,frame框架中不能有head body的出現,是單獨的引用表格,示例如下
<html> <frame> <frameset rows="80%,20%"> <frame src="head.html" frameborder="0" noresize scrolling=“no”> <frameset cols="70%,30%"> <frame src="nav.html" frameborder="0" noresize name=“nav”> <frameset src="kingdom.html" noresize name="room">
<iframe src="demo_iframe.htm" name="iframe_a"></iframe> <p><a href="http://www.baidu.com" target="iframe_a">百度</a></p>
</frameset> </html>
其中head是單獨的一個文檔代碼我們可以引用過來,就是正常的寫代碼就可以,引用的frame當中就可以!
3 css的字體,在html中如果想改變字體的大小,顏色我們需要單獨創立一個以.css 為擴展名的文件,用一個span注釋代表,然后把html中要輸入的字體顏色通過css來實現,示例如下,html部分
<div style="color:orange; font-size:100px;">hello,world</div> <div id="d1" style="color:brown">hello,world</div> <b>第一名</b> <div id="d1">hello,world</div> <p class="p1">歡迎光臨</p> <span>第一節</span> <br> 用戶名:<input type="text" name="" value="text" align="left"> <br> 密碼:<input tyle="password" name="" value="password"> <br>
css部分
span { font-size: 20px; border: 2px solid #000; } #d1 { font-size: 100px; color: red } .p1 { color: rgb(82, 235, 108); } [type="text"] { background: #000 } [type="password"] { background: #000 }
4 如何在一個網頁中插入音頻,視頻其基本格式為
<audio src=""> controls autoplay(自動播放)>