HTML網頁基礎
1.基本結構
<header> <h2>網頁的頭部</h2> </header>
<section> <h2>網頁主體</h2> </section>
<footer> <h2>網頁尾步</h2> </footer>
2.內聯框架
<iframe src="https://www.baidu.com" name="hl" frameborder="0" width="300px" height="500px"></iframe>
<a href="https://user.qzone.qq.com/3187311481" target="hl">點選跳轉</a>
3.表單語法
<form action="Deom1.html" method="get">
<p>賬號:<input type="text" name="username"> </p>
<p>密碼:<input type="password" name="pwd"> </p>
<p>
<input type="submit">
<input type="reset">
</p>
</form>
4.按鈕
無線電鈕
<input type="radio" name="sex">男
<input type="radio" name="sex">女
多選按鈕
<input type="checkbox" >睡覺
<input type="checkbox" >泡澡
<input type="checkbox" >沐浴
5.下拉選單
<select>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
6.檔案域
<p>
<input type="file" name="files">
</p>
7.email郵件判斷
<input type="email" name="email">
8.滾軸
音量:
<input type="range" min="0" max="100" name="voice">
9.搜尋
<input type="search" name="search">
10.禁用&隱藏
<input type="submit" disabled>
<input type="submit" hidden>
11.增強
<label for="mark">你點我試試看</label>
<input type="text" id="mark">
12.表單初級驗證
<p>賬號:<input type="text" name="username" placeholder="請輸入使用者名稱" required pattern=""> </p>
<p>密碼:<input type="password" name="pwd"> </p>