PS:html5新增的几个标签也比较火,后续可能会在其他博文补充。
首发日期:2018-04-01
<p>一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字一 大段文字一大段文字一大段文字一大段文字 一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字 一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字
</p>
<div> 一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字一 大段文字一大段文字一大段文字一大段文字 一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字 一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字一大段文字 </div>
<span>一段文字</span><span>一段文字</span>
示例:
<h1>h1</h1> <h2>h2</h2> <h3>h3</h3> <h4>h4</h4> <h5>h5</h5> <h6>h6</h6>
<input type="text" >
<input type="password" >
<input type="submit">
<input type="date" />
<input type="file" />
<label for="t1">用户名</label> <input id="t1" type="text" /> <label for="c1">男</label> <input id="c1" type="radio" checked="checked" />
<form src="login.html" method="post"> <label for="t2">用户名:</label> <input id="t2" type="text" /> <label for="t3">密码:</label> <input id="t3" type="text" /> <input type="submit" value="提交表单" /> </form>
<table border="2" width="200"> <thead> <tr> <th>id</th> <th>姓名</th> <th>性别</th> </tr> </thead> <tbody> <tr> <td rowspan="2">8班</td> <td>小明</td> <td>男</td> </tr> <tr> <td>小2</td> <td>男</td> </tr> </tbody> </table>
<textarea rows="4" cols="30"></textarea>
<select name="cars"> <option value="1">选项1</option> <option value="2">选项2</option> <option value="3">选项3</option> </select> <select name="cars" size="2"> <optgroup label="文件"> <option value="1" selected="selected">选项1</option> <option value="2">选项2</option> <option value="3">选项3</option> </optgroup> </select>
<a href="https://www.baidu.com" target="_blank">跳转到百度</a> <a href="#a1">按我下去</a> <div > <a name="a2">大段文字</div> <br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br> <br><br><br><br><br><br><br><br><br><br><br><br> <div id="a1"> 大段文字</div> <a href="#a2">按我上去</a>
(下面代码实现需要图片)
<img src="一个错误的路径.gif" alt="假装有图片"/> <img src="https://www.baidu.com/img/baidu_jgylogo3.gif" border="1">
属性:无常用属性或已不建议使用。
<ul> <li>1</li> <li>2</li> <li>3</li> <li>一个嵌套列表 <ul> <li>4.1.1</li> </ul> <ul> <li>4.3.1</li> </ul> </li> </ul>
<ul> <li>咖啡</li> <li>茶 <ul> <li>红茶</li> <li>绿茶</li> </ul> </li> <li>牛奶</li> </ul>
<ol> <li>1</li> <li>2</li> <li>3</li> <ol> <li>4.1</li> <li>4.2</li> <li>4.3</li> </ol> <li>5</li> </ol>
<input type="button" value="button" onclick="alert(555)">
如对本文有疑问, 点击进行留言回复!!
网友评论