HTML5基础知识(2)--标题标签的使用
1.HTML文档中包含各种级别的标题,各种级别的标题由<h1>到<h6>元素来定义,<h1>至<h6>标题标记中的字母h是英文headline的简称。其中<h1>代表1级标题,级别最高,文字也最大,其他标题元素依次递减,<h6>级别最小。
2.案例代码
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>文本标题</title>
</head>
<body>
<h1>这是1级标题</h1>
<h2>这是2级标题</h2>
<h3>这是3级标题</h3>
<h4>这是4级标题</h4>
<h5>这是5级标题</h5>
<h6>这是6级标题</h6>
</body>
</html>
3.案例截图
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAAElCAIAAACd3xI7AAAYNklEQVR4nO2dK5urOhSG8y+QlZUjK5GVyEokz1GV/QlIZGUlshKJRFZWIiuRyB5BAknIDdrZXTPzvWrvKeX6srJyacKeANCGffoEAPAARwF14CigDhwF1IGjgDpwFFAHjgLqwFFAHTgKqANHAXXgKKAOHAXUgaOAOnAUUAeOAurAUUAdOAqoA0cBdeAooA4cBdSBo4A6cPTj9F336VOgTYijXXM+netH797qUeX5pfFtFUTbVPeQ59bdy3MZtOVr9LeL//pX0+SMbfbZOeyaP0T3wRcpKI72zemLsSg+OoXom3zHWLQ9FPXjtZNqcsZYtD0cCxfHZMMYY2yTFM233sC+PkWMDSItOlIfpHWTs4FNerkvfBH69u65100x6K/tuKtPu8A719/LYxyx3an+kKaBZX1XZRFjjLHoULbWrQaXGWNsl99eCDviqSWXe2enOg1bfR2rF98JN901HQ4UZdfgA3X38hhHm9RxtwS3fLi1SbnsMrr7Jd0wFsW5SzRxL6NtLLPbjO/F9Zzu4ziO432Spml6SPgmw3+n/8fx4fzKU11NcD56K3b8dXfdy74+Djec5c36kxoddT61sK1epr3suaGVUKG9HuOIsc1ufNaaAXG85beBRXFxcx/gUSam6+hu5THe7uIQEnuMay+xae/i5g2Pqe+mOMs/kS7304TXmcSz8jgxuGyMo8GVg292dAj3YV/rm/zLVX7wk9D9EqE3Od+812x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cU3RAAAAAElFTkSuQmCC" alt="" />
HTML5基础知识(2)--标题标签的使用的更多相关文章
- HTML5 基础知识(1)——基本标签
## HTML**概念**:是最基础的网页开发语言(Hyper Text Markup Langage 超文本标记语言) > 1.超文本:超文本是用超链接的方式i,将各种不同空间的文字组织在一起 ...
- HTML5基础知识(一)---标签
在HTML5中,Web页面中重新调整了页面规划,这其中新引入了几个新标记. 我们将创建一个简单的Web页面,该页面包含一个Header区.一个Navigation区.一个Article区(包含三个部分 ...
- HTML5基础知识及相关笔记
HTML5基础 1.1HTML文件的基本结构和W3C标准 1.1.1HTML简介 HTML是一种描述网页的语言,一种超文本标记的语言! 1.1.2HTML文件的基本结构 头部(head) 头部是网页的 ...
- HTML和SEO基础知识:H标签全透视
原文地址:http://www.chinaz.com/web/2010/0921/134391.shtml 什么是H标签? h1,h2,h3,h4,h5,h6,作为标题标签,并且依据重要性递减.我认为 ...
- 前端 | HTML5基础知识
1 HTML定义 HTML(英文Hyper Text Markup Language的缩写)中文译为"超文本标签语言",主要是通过HTML标签对网页中的文本.图片.声音等内容进行描 ...
- html5基础知识
html5+css3 html5定义很多简便东西和宽松语法: 文档头: <!doctype html> 文档编码: <meta cha ...
- 【前端】之HTML5基础知识
HTML5 文件格式 <!DOCTYPE html> <html lang="en"> <head> <meta charset=&quo ...
- HTML5基础知识汇总(一)
一.HTML的开发工具和使用的浏览器 开发工具:记事本等文本编辑器,Atom.VisualStudioCode( VSCode).Brackets.Sublime text和Hbuider. 浏览器: ...
- 前端进阶笔记之核心基础知识---那些HTML标签你熟悉吗?
目录 1.交互实现 1.1 meta标签:自动刷新/跳转 1.2 title标签:消息提醒 2.性能优化 2.1 script标签:调整加载顺序提升渲染速度 2.2 link标签:通过预处理提升渲染速 ...
随机推荐
- [HOOLOO] zizaco/entrust 5.2.x-dev Class name must be a valid object or a string
在使用laravel 5.1权限管理,使用 安装 zizaco/entrust 5.2.x-dev的时候执行 php artisan entrust:migration的时候报以下错误: [Symf ...
- 空间复杂度是什么?What does ‘Space Complexity’ mean? ------geeksforgeeks 翻译
这一章比较短! 空间复杂度(space complexity)和辅助空间(auxiliary space)经常混用,下面是正确的辅助空间和空间复杂度的定义 辅助空间:算法需要用到的额外或者暂时的存储空 ...
- bzoj-4517 4517: [Sdoi2016]排列计数(组合数学)
题目链接: 4517: [Sdoi2016]排列计数 Time Limit: 60 Sec Memory Limit: 128 MBSubmit: 846 Solved: 530[Submit][ ...
- web 小知识
document.write和innerHTML的区别 document.write是直接写入到页面的内容流,如果在写之前没有调用document.open, 浏览器会自动调用open.每次写完关 ...
- qau-国庆七天乐——B
B - Bull Math Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%lld & %llu Sub ...
- 收集入侵Windows系统的证据
随着网络的不断扩大,网络安全更加会成为人们的一个焦点,同时也成为是否能进一步投入到更深更广领域的一个基石.当然网络的安全也是一个动态的概念,世界上没有绝对安全的网络,只有相对安全的网络.相对安全环境的 ...
- java问题小总结
1.在使用equals的时候,把 "".equals(name);放在左边 如果右边的没有初始化,可以避免出错. 2.对于 ObjectId id; 在mongodb里面对其进行 ...
- tomcat相关配置技巧梳理
tomcat常用架构:1)nginx+tomcat:即前端放一台nginx,然后通过nginx反向代理到tomcat端口(可参考:分享一例测试环境下nginx+tomcat的视频业务部署记录)2)to ...
- java多线程系类:基础篇:08之join
本章,会对Thread中join()方法进行介绍.涉及到的内容包括:1. join()介绍2. join()源码分析(基于JDK1.7.0_40)3. join()示例 转载请注明出处:http:// ...
- BZOJ 1040 【ZJOI2008】 骑士
Description Z国的骑士团是一个很有势力的组织,帮会中汇聚了来自各地的精英.他们劫富济贫,惩恶扬善,受到社会各界的赞扬.最近发生了一件可怕的事情,邪恶的Y国发动了一场针对Z国的侵略战争.战火 ...