<!-- 表单 -->
<form action="" method="">
<h4>注册</h4>
用户名:<input type="text"><br>
密码:<input type="password"><br>
再次输入密码:<input type="password"><br>
年龄:<input type="number"><br>
邮箱:<input type="email"><br>
日期:<input type="date"><br>
时间:<input type="time"><br>
<!-- 单选 -->
<!-- checked 单选多选的默认选中 无需给值 -->
性别:男<input type="radio" checked name="男">女<input type="radio" name="男"><br>
<!-- 多选 -->
爱好:<input type="checkbox"> 打游戏
<input type="checkbox"> 内卷<br>
<!-- 上传文件 -->
<input type="file"><br>
<!-- 滑块 -->
<input type="range"><br>
<!-- 下拉列表 -->
生日:<select name="" id="">
<!-- selected 下拉框的默认选中 -->
<option value="">1999</option>
<option selected>2000</option>
</select><br>
<!-- 副文本框 -->
个人简介:<textarea name="" id="" cols="30" rows="10"></textarea><br>
<!-- 提交给后台 -->
<input type="submit" value="提交">
<button>提交</button>
<!-- 重置全部内容 -->
<input type="reset" value="重置">
<!-- 无意义按钮,只是个按钮,不触发form表单 -->
<input type="button" value="百度一下">
</form>
<!-- 标题标签 -->
<h1>这是最大标题</h1>
<h6>这是最小标题</h6>
<!-- 段落标签 -->
<p>我是一段很长很长的话</p>
<!-- 斜体标签 -->
<em>这是斜体标签</em>
<!-- 加粗 -->
<strong>这是加粗</strong>
<!-- 图片 src alt 是img标签的属性-->
<!-- alt 属性 当图片加载失败时 提示信息 -->
<!-- 同一层级使用./ 上一层使用../ -->
<img src="./" alt="">
<img src="../images/1.jpg" alt="">
<!-- 超链接标签 -->
<!-- href属性 -->
<a href="https://www.baidu.com/">跳转到</a>
<!-- 换行标签 -->
<br>
<!-- 水平线标签 -->
<hr>
<!-- 空格符号 -->
<!-- 版权符号 © -->
我 哈哈哈哈©
Visual Studio Code基本
最新推荐文章于 2024-05-18 15:33:32 发布