HTML标签

这篇文章详细描述了HTML中常见的各种元素,包括文本输入、按钮、文件上传、密码输入、下拉菜单、超链接、表格、图片、文本域、加粗标签、换行、段落和注释等,并展示了它们在网页结构中的应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

文本  <input type="text" name="" value="test"/>

<input type="text" name="" value="test"/>

按钮  <input type="button" name="" value="登录">

<input type="button" name="" value="登录">

文件上传  <input type="file"/>

<input type="file"/>

密码输入框  <input type="password"/>

<input type="password"/>

下拉框  <select><option></option><select>

<select><option></option><select>

超链接  <a href="http://www.baidu.com">百度一下</a>

<a href="http://www.baidu.com">百度一下</a>

表格

<table>
    <tr><td>111</td><td>222</td><td>333</td></tr>
    <tr><td>111</td><td>222</td><td>333</td></tr>
    <tr><td>111</td><td>222</td><td>333</td></tr>
</table>

<table>
    <tr><td>111</td><td>222</td><td>333</td></tr>
    <tr><td>111</td><td>222</td><td>333</td></tr>
    <tr><td>111</td><td>222</td><td>333</td></tr>
</table>

图片

<img src="C:\User\Adminstration\test.png">

<img src="https://cn.bing.com/images/search?view=detailV2&ccid=m4ynqIaq&id=EB5357B4FCA39FF3F7399AB051DCEE658962F52C&thid=OIP.m4ynqIaq_fPG5R33v5b-3QHaHa&mediaurl=https%3a%2f%2fpic.ntimg.cn%2ffile%2f20181031%2f26785037_093345525085_2.jpg&exph=1024&expw=1022&q=%e5%9b%be%e7%89%87%e9%93%be%e6%8e%a5&simid=607990309774374299&FORM=IRPRST&ck=753FC444D861E67E3ED12CBB7B9B0F20&selectedIndex=0&itb=0&ajaxhist=0&ajaxserp=0">

<img src="C:\User\Adminstration\test.png">

<img src="https://cn.bing.com/images/search?view=detailV2&ccid=m4ynqIaq&id=EB5357B4FCA39FF3F7399AB051DCEE658962F52C&thid=OIP.m4ynqIaq_fPG5R33v5b-3QHaHa&mediaurl=https%3a%2f%2fpic.ntimg.cn%2ffile%2f20181031%2f26785037_093345525085_2.jpg&exph=1024&expw=1022&q=%e5%9b%be%e7%89%87%e9%93%be%e6%8e%a5&simid=607990309774374299&FORM=IRPRST&ck=753FC444D861E67E3ED12CBB7B9B0F20&selectedIndex=0&itb=0&ajaxhist=0&ajaxserp=0">

文本域  <textarea rows="10" cols="5"></textarea>

<textarea rows="10" cols="5"></textarea>

加粗标签  <b>测试</b>

<b>测试</b>

换行  <br>

<br>

段落  <p>这是一个段落文字,谢谢</p>

<p>这是一个段落文字,谢谢</p>

注释  <!-- 这里是注释 -->

<!-- 这里是注释 -->

iframe  内嵌网页  <iframe src="http://www.baidu.com" width="200" height="200"></iframe>

<iframe src="http://www.baidu.com" width="200" height="200"></iframe>

块  

<body>
<div class="head">
    <h1>页面顶部区域</h1>
</div>
<div class="left">
    <h1>页面哟测区域</h1>
</div>
</body>

<body>
<div class="head">
    <h1>页面顶部区域</h1>
</div>
<div class="left">
    <h1>页面哟测区域</h1>
</div>
</body>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值