HTML基础标签 代码如下

<!-- HTML5的标识,告诉浏览器是一个HTML5的页面,请按照解析HTML5的方式解析 -->
<html><!-- 前开、后闭标签 -->
<head>
<meta charset="utf-8">
<!-- ↑ 元标签 -->
<!-- charset:编码格式 -->
<!-- utf-8:几乎包含200多种语言的所有字符 -->
<!-- GBK国家标准扩展包 -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hello,wold</title>
</head>
<body><!-- 主体 -->
<div>无实际意义标签</div>
<h1>一级标题</h1>
<h2>二级标题</h2>
<h3>三级标题</h3>
<h4>四级标题</h4>
<h5>五级标题</h5>
<h6>六级标题</h6>
<p>段落标签</p>
<img src="http://cms-bucket.ws.126.net/2021/1101/30942773j00r1vh8c00pec001e000goc.jpg" width="1519" height="506.3333333333333" onload="fixSharePos()">
<input type="text" name="">
<input type="number" name="">
<input type="password" name="">
<br>性别:
<input type="radio" name="gender">男
<input type="radio" name="gender">女
<br>
兴趣爱好:
<input type="checkbox" name="">玩游戏
<input type="checkbox" name="">睡觉
<input type="checkbox" name="">干饭
<!-- ↑ 属性 -->
<ul type="square"><!-- circle -->
<!-- 无序列表 -->
<li>aaa</li>
<li>bbb</li>
<li>ccc</li>
</ul>
<ol type="a"><!-- A,i,I -->
<li>aaa</li>
<li>bbb</li>
<li>ccc</li>
</ol>
<a href="https://www.baidu.com">百度
</body>
</html>

posted @ 2021-11-07 20:26  南风轻语、  阅读(163)  评论(0)    收藏  举报