c语言编程笔录

首页 >   > 笔记大全

笔记大全

html常用标签及属性

更新时间:2023-11-05

HTML常用标签及属性

HTML(超文本标记语言)是用于构建网页的标准标记语言。它由一系列的标签组成,每个标签都有特定的功能和属性,用于描述页面中的不同元素和结构。在本文中,我们将介绍一些常用的HTML标签及其属性。

1.标签

<head>
  <title>页面标题</title>
  <meta charset="UTF-8">
  <link rel="stylesheet" href="styles.css">
  <script src="script.js"></script>
</head>

<head>标签用于定义文档的头部区域,其中包含了一些与文档相关的元数据和引用外部资源的标签,如、<meta>、<link>和<script>等。其中,<title>标签用于指定页面标题,<meta>标签用于指定字符编码和其他元数据,<link>标签用于引入外部样式表,而<script>标签用于引入外部脚本。</p> <h4>2.<body>标签</h4> <p><pre class="brush:html;toolbar:false"> <body> <h1>这是一个标题</h1> <p>这是一个段落</p> <a href="https://www.example.com">这是一个链接</a> <img src="image.jpg" alt="图片"> <ul> <li>列表项1</li> <li>列表项2</li> <li>列表项3</li> </ul> </body> </pre></p> <p><code><body></code>标签用于定义文档的主体内容区域,其中包含了页面中的各种元素和内容,如标题、段落、链接、图像和列表等。以上展示了一些常见的标签,如<h1>用于定义标题,<p>用于定义段落,<a>用于定义链接,<img>用于定义图像和<ul>和<li>用于定义无序列表。</p> <h4>3. 表格标签</h4> <p><pre class="brush:html;toolbar:false"> <table> <tr> <th>表头1</th> <th>表头2</th> <th>表头3</th> </tr> <tr> <td>单元格1</td> <td>单元格2</td> <td>单元格3</td> </tr> <tr> <td>单元格4</td> <td>单元格5</td> <td>单元格6</td> </tr> </table> </pre></p> <p><code><table></code>标签用于创建表格,其中包含了行(<tr>)和列(<th>和<td>)标签。行标签用于定义表格的行,列标签分别用于定义表头和表格数据单元格。上述代码展示了一个简单的表格结构,包含了一个表头行和两个数据行。</p> <h4>总结</h4> <p>本文简要介绍了一些常用的HTML标签及其属性,包括<head>、<body>、表格标签等。这些标签在构建网页时非常常见,可以用于定义文档结构、样式和交互等方面。熟悉这些HTML标签及其属性的用法对于成为一名全栈程序员来说是非常重要的。</p> </div> <div class="share" id="down"> <div class="share-text"> <p>本文如果侵犯了你的权益请联系站长整改删除</p> <p>转载请注明出处</p> <p>本文地址:<a href="https://www.radbuilder.com/marketing/Python/17955.html" target="_blank">https://www.radbuilder.com/marketing/Python/17955.html</a></p> </div> </div> </div> </div> <div class="clear blank"></div> <div class="down-links whitebg"> <div class="news-title"> <h2></h2> </div> <ul> </ul> </div> <div class="clear blank"></div> <div class="down-otherlink whitebg"> <div class="news-title"> <h2>图文推荐</h2> </div> <ul> <li><a href="https://www.radbuilder.com/marketing/Python/2052.html" target="_blank"><i><img src="/d/file/p/2023/07-01/small6647a07de5915ca25dce66845345e784.jpg"></i> <p>如何在php中对json对象的值进行输出</p> <span class="down-info"></span></a></li> <li><a href="https://www.radbuilder.com/marketing/Python/2007.html" target="_blank"><i><img src="/d/file/p/2023/07-01/small1c14fee124197f8a8d8d542f6468c434.jpg"></i> <p>jquery min js指的是什么</p> <span class="down-info"></span></a></li> <li><a href="https://www.radbuilder.com/marketing/Python/2049.html" target="_blank"><i><img src="/d/file/p/2023/07-01/small3b228fd92e9008dce070ca2578c632ff.jpg"></i> <p>正在执行的SQL语句怎么在postgresql中结束</p> <span class="down-info"></span></a></li> <li><a href="https://www.radbuilder.com/marketing/Python/1995.html" target="_blank"><i><img src="/d/file/p/2023/07-01/small1b9fcb9991e07208298c92968b167cbe.jpg"></i> <p>PHP中is+numeric与ctype+digit有什么不同</p> <span class="down-info"></span></a></li> <li><a href="https://www.radbuilder.com/marketing/Python/2109.html" target="_blank"><i><img src="/d/file/p/2023/07-02/small27f3e50affd2acd5029588ed2c1111ab.jpg"></i> <p>利用php如何对非法字符进行过滤</p> <span class="down-info"></span></a></li> <li><a href="https://www.radbuilder.com/marketing/Python/2102.html" target="_blank"><i><img src="/d/file/p/2023/07-02/smalle75ad5f22e9a604e3a9a83f0dd057d19.jpg"></i> <p>怎么在Java中使用LinkedList</p> <span class="down-info"></span></a></li> </ul> </div> <div class="pinglun-box whitebg"> <div class="news-title"> <h2></h2> </div> </div> </div> <aside class="side-section right-box"> <div class="whitebg down-tuijian"> </div> <div class="blank clear" ></div> <div class="whitebg down-paihang"> <h2 class="side-title">热门排行</h2> <ul> <li><i></i><a href="https://www.radbuilder.com/marketing/Python/2052.html" title="如何在php中对json对象的值进行输出" target="_blank">如何在php中对json对象的值进行输出</a></li> <li><i></i><a href="https://www.radbuilder.com/marketing/Python/1174.html" title="uniapp实现定位权限" target="_blank">uniapp实现定位权限</a></li> <li><i></i><a href="https://www.radbuilder.com/marketing/Python/1244.html" title="Python实现热加载配置文件的方法" target="_blank">Python实现热加载配置文件的方法</a></li> <li><i></i><a href="https://www.radbuilder.com/marketing/Python/3489.html" title="ps如何把皮肤通透白嫩" target="_blank">ps如何把皮肤通透白嫩</a></li> <li><i></i><a href="https://www.radbuilder.com/marketing/Python/11784.html" title="js中怎么用文件流下载csv文件" target="_blank">js中怎么用文件流下载csv文件</a></li> <li><i></i><a href="https://www.radbuilder.com/marketing/Python/989.html" title="怎么使用PHP进行人工智能开发" target="_blank">怎么使用PHP进行人工智能开发</a></li> <li><i></i><a href="https://www.radbuilder.com/marketing/Python/1008.html" title="XML文档不能使用css样式表如何办" target="_blank">XML文档不能使用css样式表如何办</a></li> <li><i></i><a href="https://www.radbuilder.com/marketing/Python/1257.html" title="JavaScript中的错误处理技巧" target="_blank">JavaScript中的错误处理技巧</a></li> </ul> </div> <div class="blank clear" ></div> <div class="whitebg cloud"> <h2 class="side-title">标签云</h2> <ul> <a href="https://www.radbuilder.com/e/tags/?tagid=64&tempid=8" target="_blank">C(6)</a> <a href="https://www.radbuilder.com/e/tags/?tagid=73&tempid=8" target="_blank">PHP(1)</a> <a href="https://www.radbuilder.com/e/tags/?tagid=102&tempid=8" target="_blank">c语言(750)</a> <a href="https://www.radbuilder.com/e/tags/?tagid=63&tempid=8" target="_blank">C++(7)</a> </ul> </div> <div class="ad ad-small"></div> <div class="whitebg down-suiji"> <h2 class="side-title">猜你喜欢</h2> <ul> <li><a target="_blank" href="https://www.radbuilder.com/marketing/Python/17710.html"><i><img src=""></i> <p>C语言归排与计排是什么</p> <span class="down-info"></span></a></li> <li><a target="_blank" href="https://www.radbuilder.com/marketing/Python/14040.html"><i><img src=""></i> <p>Golang的中间件设计模式怎么实现</p> <span class="down-info"></span></a></li> <li><a target="_blank" href="https://www.radbuilder.com/marketing/Python/1607.html"><i><img src=""></i> <p>如果还有一次机会 重写override便是你的出路</p> <span class="down-info"></span></a></li> <li><a target="_blank" href="https://www.radbuilder.com/marketing/Python/14701.html"><i><img src=""></i> <p>json字符串中key对应的value值怎么进行修改</p> <span class="down-info"></span></a></li> <li><a target="_blank" href="https://www.radbuilder.com/marketing/Python/3566.html"><i><img src=""></i> <p>集中式状态管理Vuex如何使用</p> <span class="down-info"></span></a></li> <li><a target="_blank" href="https://www.radbuilder.com/marketing/Python/14383.html"><i><img src=""></i> <p>Python递归算法是什么</p> <span class="down-info"></span></a></li> <li><a target="_blank" href="https://www.radbuilder.com/marketing/Python/17676.html"><i><img src=""></i> <p>php怎么实现sqlserver数据导入到mysql数据库</p> <span class="down-info"></span></a></li> <li><a target="_blank" href="https://www.radbuilder.com/marketing/Python/1431.html"><i><img src=""></i> <p>html网页制作的基本步骤是什么</p> <span class="down-info"></span></a></li> <li><a target="_blank" href="https://www.radbuilder.com/marketing/Python/5497.html"><i><img src=""></i> <p>怎么使用PHP将时间戳转为美式时间格式</p> <span class="down-info"></span></a></li> <li><a target="_blank" href="https://www.radbuilder.com/marketing/Python/3732.html"><i><img src=""></i> <p>高中编程python语言</p> <span class="down-info"></span></a></li> </ul> </div> </aside> </article> <div class="clear blank"></div> <footer> <div class="footer box"> <div class="wxbox"> <ul> <li><span> </span></li> <li><span> </span></li> </ul> </div> <div class="endnav"> <p>备案号:<a href="https://beian.miit.gov.cn/" target="_blank" rel="nofollow">粤ICP备2023061792号-2</a> <a href="https://www.radbuilder.com/sitemap.xml" target="_blank">网站地图</a></p> </div> </div> </footer> <div class="toolbar-open"></div> <div class="toolbar"> <div class="toolbar-close"><span id="closed"></span></div> <div class="toolbar-nav"> <ul id="toolbar-menu"> <li><i class="side-icon-user"></i> <section> <div class="userinfo"> <script src="https://www.radbuilder.com/e/member/login/loginjs.php"></script> </div> </section> </li> <li><i class="side-icon-qq"></i> <section class="qq-section"> <div class="qqinfo"><a href="http://wpa.qq.com/msgrd?v=3&uin=19801987&site=qq&menu=yes">站长QQ</a></div> </section> </li> <li><i class="side-icon-weixin"></i> <section class="weixin-section"> <div class="weixin-info"> <p>个人微信</p> <p class="text12">工作时间</p> <p class="text12">周一至周日 9:00-21:00</p> </div> </section> </li> <li><i class="side-icon-dashang"></i> <section class="dashang-section"> <p></p> <ul> <li></li> <li></li> </ul> </section> </li> </ul> </div> </div> <div class="endmenu"> <ul> <li><a href="https://www.radbuilder.com/"><i class="iconfont icon-shouye"></i>首页</a></li> <li><a href="https://www.radbuilder.com/phone-fenlei.html"><i class="iconfont icon-fenlei"></i>分类</a></li> <li><a href="https://www.radbuilder.com/phone-list.html"><i class="iconfont icon-navicon-wzgl"></i>所有</a></li> <li><a href="https://www.radbuilder.com/e/member/my/"><i class="iconfont icon-My"></i>我的</a></li> </ul> </div> <a href="#" title="返回顶部" class="icon-top"></a> </body> </html><script src="https://www.radbuilder.com/e/public/onclick/?enews=donews&classid=20&id=17955"></script>