關於HTML中的樣式檔案
阿新 • • 發佈:2019-01-23
1.<link>用於引用外部CSS檔案,CSS檔案可以用來控制網頁樣式
2.元素=標籤+屬性+內容
(1)<p>標籤,段落
(2)<h1>-<h6>標題 字型從大到小 並且加粗顯示
(3)<u>下劃線、<b>加粗、<em>斜體、<mark> 高亮顯示
3.下拉框和分組
下拉框--option
<select name="hefei"> <optgroup label="合肥市"> <option value="town" selected>包河區</option> <option value="changfeng">廬陽區</option> </optgroup> </select>
<fieldset>表單元素分組標籤
<body> <fieldset> <legend>使用者資訊:</legend> <div> <label for="name">使用者名稱稱:</label> <input type="text" name="name" id="name"> </div> <div> <label for="pwd">使用者密碼:</label> <input type="password" name="pwd" id="pwd"> </div> <div> <label for="email">電子郵箱:</label> <input type="email" name="email" id="email"> </div> <input type="" name=""> </fieldset> </body>
關於設定表單
<!--設定預設提示資訊或預設值-->
使用者名稱:<input type="text" name="login" placeholder="使用者名稱不能為空">
<!--自動獲取輸入焦點-->
密碼:<input type="text" name="name" autofocus="">
<!--設定欄位為必填項-->
確認密碼:<input type="text" name="name" placeholder="使用者名稱不能為空" required>