html基本标签
时间:2023-01-13
本文章向大家介绍html基本标签,主要内容包括其使用实例、应用技巧、基本知识点总结和需要注意事项,具有一定的参考价值,需要的朋友可以参考一下。
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="爱Zyn的一切">
<!-- 搜索内容描述 -->
<meta name="keywords" content="亲亲,抱抱,摸摸">
<!-- 搜索关键字 -->
<title>Zzh -Web</title>
<!-- 标题 -->
<link rel="icon" href="/first/img/logo.jpg">
<!-- 图标 -->
</head>
<body>
<span>Hello</span>
<span>World</span>
<!-- 行 -->
<div>Hellow</div>
<div>World</div>
<!-- 块 -->
<h1>Hellow World</h1>
<h2>Hellow World</h2>
<h3>Hellow World</h3>
<h4>Hellow World</h4>
<h5>Hellow World</h5>
<h6>Hellow World</h6>
<!-- 标题 -->
<p>在这之前,我从来不曾如此渴望拥有什么东西。
就像遇见你之前,我不懂什么是喜欢,什么是心动。</p>
<p>在这之前,我从来不曾如此渴望拥有什么东西。<br>
就像遇见你之前,我不懂什么是喜欢,什么是心动。</p>
<hr>
<i>斜体</i>
<ins>下划线</ins>
<del>删除线</del>
<b>加粗</b>
<strong>加粗</strong>
<mark>标记</mark>
<hr>
<pre>
#include <bits/stdc++.h>
using namespace std;
signed main()
{
cout << "我爱你,zyn";
retrun 0;
}
</pre>
<!-- 多个照片一行存不下,就会自动换行 -->
<img src="/first/img/first.png" alt="图片被删除" width="300">
<img src="/first/img/first.png" alt="图片被删除" width="300">
<img src="/first/img/first.png" alt="图片被删除" width="300">
<audio controls src="/first/videos/踏山河5.mp3">Con't Begin</audio>
<hr>
<audio controls>
<source src="/first/videos/踏山河5.mp3" type="atdio/mpeg">
<source src="/first/videos/踏山河5.mp3" type="atdio/mpeg">
</audio>
<video controls src="/first/videos/亲嘴.mp4" width="300">Con't Begin</video>
<hr>
<a href="https://www.cnblogs.com/zzh1206/p/16739548.html" target="_blank">爱诺</a>
<a href="/about.html">about</a>
<a href="https://www.cnblogs.com/zzh1206/p/16739548.html" target="_blank">
<img src="/first/img/first.png" alt="图片被删除" width="100">
</a>
<hr>
<h1>Form</h1>
<form action="/about.html">
<label for="username">用户名</label>
<input type="text" name="username" id="username" maxlength="4" minlength="3" placeholder="用户名">
<br>
<label for="password">密码</label>
<input type="password" name="password" id="password">
<br>
<label for="age">年龄</label>
<input type="number" name="age" id="age">
<br>
<label for="email">邮箱</label>
<input type="email" name="eamil" id="email" required>
<br>
<label for="C++">C++</label>
<input type="radio" name="lang" id="C++" value="C++">
<label for="Python">Python</label>
<input type="radio" name="lang" id="Python" value="Python">
<label for="Jave">Java</label>
<input type="radio" name="lang1" id="Java" value="Java">
<br>
<label for="open">打开文件</label>
<input type="file" name="open" id="open">
<br>
<label for="resume">个人简介</label>
<textarea name="resume" id="resume" cols="30" rows="10"></textarea>
<br>
<select name="language" id="language">
<option value="">请选择</option>
<!-- 保证默认为空 -->
<option selected value="C++">C++</option>
<option value="Java">Java</option>
<option value="Python">Python</option>
</select>
<button type="submit">提交</button>
</form>
<hr>
<h1>List</h1>
<ul>
<li>first</li>
<ol>
<li>心动打破原则</li>
<li>喜欢没有标准</li>
</ol>
<li>second</li>
<li>thrid</li>
</ul>
<hr>
<h1>Table</h1>
<table>
<caption>经历</caption>
<thead>
<tr>
<th>Name</th>
<th>Picture</th>
<th>Video</th>
</tr>
</thead>
<tbody>
<tr>
<td>zzh</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>zyn</td>
<td>2</td>
<td>2</td>
</tr>
</tbody>
</table>
<hr>
<h1>语义标签</h1>
<header>
<h1>我的收藏夹</h1>
<nav>
<ul>
<li><a href="first.html">初识</a></li>
<li><a href="second.html">熟悉</a></li>
<li><a href="third.html">相爱</a></li>
</ul>
</nav>
</header>
<hr>
<section>
<figure>
<img src="/first/img/first.png" alt="图片被删除" width="100">
<figcaption>logo</figcaption>
<img src="/first/img/logo.jpg" alt="图片被删除" width="100">
<figcaption>合照</figcaption>
</figure>
</section>
<hr>
<h1>文章</h1>
<section>
<article>
<h3>喜欢</h3>
<p>喜欢喜欢喜欢喜欢喜欢喜欢喜欢喜欢</p>
<p>喜欢喜欢喜欢喜欢喜欢喜欢喜欢喜欢</p>
</article>
<article>
<h3>爱</h3>
<p> 爱爱爱爱爱爱爱爱爱爱爱爱爱爱爱 </p>
<p> 爱爱爱爱爱爱爱爱爱爱爱爱爱爱爱 </p>
</article>
</section>
<hr />
<footer>
©2100-01-13
</footer>
<hr>
< > & " ® © ™
</body>
</html>
原文地址:https://www.cnblogs.com/zzh1206/p/17049197.html
- spring mvc4:异常处理
- TCP/IP, WebSocket 和 MQTT
- struts2: 玩转 rest-plugin
- 设置系统环境变量立即生效的VBS脚本
- velocity模板引擎学习(1)
- mybatis 3.x 缓存Cache的使用
- XStream、JAXB 日期(Date)、数字(Number)格式化输出xml
- mac: vmware fusion中cent os启动假死的解决办法
- java:hibernate + oracle之坑爹的clob
- 启用WCF NetTcpBinding的共享端口
- asp中的md5/sha1/sha256算法收集
- UE4从零搭建CF游戏关卡(蓝图篇)
- 通用的序列号生成器库
- 利用Geneva开发SOA的安全模型
- HTML 教程
- HTML 简介
- html div 标签介绍
- html span 标签介绍
- html a 超链接标签
- HTML Br换行标签介绍
- HTML P段落标签介绍
- HTML br与p标签区别
- Html H 标题标签
- html px em pt长度单位
- HTML form 标签
- HTML radio 单选框
- HTML B 加粗标签
- HTML strong加粗粗体标签
- HTML em 强调标签
- HTML i 斜体标签
- HTML u下划线标签
- HTML s 删除线标签
- Html img 图片标签
- Html上标注sup与下标注sub标签
- HTML nobr 禁止换行标签
- HTML hr 水平线标签
- HTML label 标签
- HTML input 标签
- HTML textarea 标签
- HTML select下拉列表标签
- HTML checkbox 多选框
- HTML font color 标签
- HTML iframe 框架标签
- HTML Table 表格
- HTML dl dt dd 标签
- HTML ol li有序列表标签
- HTML ul li 无序列表标签
- HTML 注释
- CSS 教程
- CSS 简介
- CSS 语法
- CSS Id 和 Class选择器
- CSS 样式的创建
- CSS background 背景介绍
- CSS 文本样式
- CSS font 字体
- CSS A 链接
- CSS ul ol列表样式
- CSS TABLE 样式
- CSS 框模型
- CSS border 边框
- CSS Outlines 轮廓
- CSS 外边距 Margin
- CSS Padding 内边距
- CSS 分组和嵌套选择器
- CSS 尺寸 (Dimension)
- CSS Display 属性
- CSS Position 定位
- CSS Float 浮动
- CSS 水平对齐(Horizontal Align)
- CSS 组合选择符
- CSS 伪类
- CSS 伪元素
- CSS 导航栏
- CSS 下拉菜单
- CSS 图片廊
- CSS 图像透明/不透明
- CSS sprite 图像拼合技术
- CSS 媒体类型
- CSS 属性选择器
- CSS 实例
- Android编程实现保存图片到系统图库的方法示例
- Android自定义单选多选下拉列表的实例代码
- R语言POT超阈值模型在洪水风险频率分析中的应用研究
- Android开发之ToggleButton实现开关效果示例
- Android使用Circular Reveal动画让页面跳转更炫酷
- 学习使用Material Design控件(三)使用CardView实现卡片效果
- Android实现dialog的3D翻转示例
- Android ImageView 固定宽高比例的实现方法
- Android 实现IOS选择拍照相册底部弹出的实例
- ubuntu 20.04上搭建LNMP环境的方法步骤
- Android实现界面内嵌多种卡片视图(ViewPager、RadioGroup)
- Android设计模式之Builder模式详解
- 详解Android获取系统内核版本的方法与实现代码
- Android 修改viewpage滑动速度的实现代码
- 在Ubuntu20.04中安装ROS Noetic的方法