当前位置:网站首页>H5 semantic label
H5 semantic label
2022-07-29 05:44:00 【Ice eyes JS】
HTML5 The newly added semantic tags mainly include :
<article>、<section>、<nav>、<aside>、<header>、<footer>、<time> wait ...
advantage :
In order not to CSS Under the circumstances , The page can also present a good content structure 、 Code structure ratio <div> Labels have richer meanings , Easy to develop and maintain
1.header And hgroup
At the top of a page or layout , Usually place navigation bar or title
A document can contain one or more pairs of <header> label .
The position of the label is secondary , It doesn't have to be displayed at the top of the page , We can add <header> Elements , For example, the following will explain <article>、<section> Such as tag .
2.nav
Represents the navigation of the page , It can also be in <header> Use in Tags , It can also be displayed in the sidebar . There can be more than one page <nav> label .
In order to facilitate search engine analysis , It's best to put the main links in nav in .
3.aside
The content contained is not the main content of the page 、 It is independent , It is a supplement to the page .
<aside> Generally used on pages 、 The sidebar of the article 、 advertisement 、 Links and other areas
4.footer
It is usually placed at the bottom of the page or a block in the page , Contains copyright information 、 Contact information . A page can also have multiple footer
5.article
<article> Elements should be used in relatively independent 、 Complete content block , So we can post on a blog 、 A forum post 、 Used in a news report or a user comment <article> Elements .article You can nest each other .
边栏推荐
- [C language series] - string + partial escape character explanation + annotation tips
- 新手入门:手把手从PHP环境到ThinkPHP6框架下载
- 麦当娜“Hellbent”购买130万美元的nft无聊猿,现在被认为太贵了
- 组件传参与生命周期
- 如何 Pr 一个开源composer项目
- Summary of knowledge points related to forms and forms
- Laravel服务容器(上下文绑定的运用)
- Provincial and urban three-level linkage (simple and perfect)
- Selection options of uniapp components (such as package selection)
- 第五空间智能安全⼤赛真题----------PNG图⽚转换器
猜你喜欢

Flask 报错 RuntimeError: The session is unavailable because no secret key was set.

Wechat applet - screen height

HCIA-R&S自用笔记(25)NAT技术背景、NAT类型及配置

Starfish OS:以现实为纽带,打造元宇宙新范式

Do students in the science class really understand the future career planning?

QFrame类学习笔记

如何 Pr 一个开源composer项目

新手入门:手把手从PHP环境到ThinkPHP6框架下载

Fvuln-自动化web漏洞检测工具
![[C language series] - constants and variables that confuse students](/img/24/1158034a5de413ea4ce160c5bfcbb4.png)
[C language series] - constants and variables that confuse students
随机推荐
QPalette学习笔记
js简单代码判断打开页面的设备是电脑PC端或手机H5端或微信端
Wechat applet - component parameter transmission, state management
[C language series] - storage of deep anatomical data in memory (I) opening of summer vacation
uniapp组件之tab选项卡滑动切换
Qtcreator+cmake compiler settings
大部分PHP程序员,都搞不懂如何安全代码部署
JS simple code determines whether the device that opens the page is the PC end of the computer, the H5 end of the mobile phone, or the wechat end
IDEA使用JDBC连接MySQL数据库个人详细教程
组件传参与生命周期
ThinkPHP6 输出二维码图片格式 解决与 Debug 的冲突
虚拟增强与现实第二篇 (我是一只火鸟)
[typescript] learn typescript object types in depth
DAY15:文件包含漏洞靶场手册(自用 file-include 靶场)
Wechat applet change attribute value -setdata- bidirectional binding -model
移动端-flex项目属性
Selenium实战案例之爬取js加密数据
link与@import的关系
How does the MD editor of CSDN input superscripts and subscripts? The input method of formula and non formula is different
uniapp组件之倒计时(如阅读协议倒计时、完成学习倒计时)