当前位置:网站首页>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 .
边栏推荐
- Selenium实战案例之爬取js加密数据
- Introduction to C language array to proficiency (array elaboration)
- 【JS题解】牛客网JS篇1-10题
- DAY13:文件上传漏洞
- uniapp组件之倒计时(如阅读协议倒计时、完成学习倒计时)
- uniapp组件之选择选项(如套餐选择)
- [C language series] - storage of deep anatomical data in memory (I) opening of summer vacation
- Hcia-r & s self use notes (27) comprehensive experiment
- ·Let's introduce ourselves to the way of programming·
- HCIA-R&S自用笔记(24)ACL
猜你喜欢

DAY15:文件包含漏洞靶场手册(自用 file-include 靶场)

Basic concepts of MySQL + database system structure + extended application + basic command learning

Qt布局管理--部件拉伸(Stretch)原理及大小策略(sizePolicy)
![[C language series] - print prime numbers between 100 and 200](/img/61/5b9dea72e7a3fd450a87fe35fb94eb.png)
[C language series] - print prime numbers between 100 and 200

Masscan使用教程.

【TypeScript】深入学习TypeScript对象类型

【JS题解】牛客网JS篇1-10题

表格与表单相关知识点总结

Common prompt pop-up box of uniapp

Question swiping Madness - leetcode's sword finger offer58 - ii Detailed explanation of left rotation string
随机推荐
Plato Farm有望通过Elephant Swap,进一步向外拓展生态
打印出1-100之间的所有质数
Solve the problem that the prompt information of form verification does not disappear and the assignment does not take effect
Similarities and differences between REM and PX and EM
ThinkPHP6 输出二维码图片格式 解决与 Debug 的冲突
Qframe class learning notes
【无标题】
DAY4:SQL Sever 简单使用
Liang Yuqi, founder of aitalk: the link between image and virtual reality
Thinkphp6管道模式Pipeline使用
nmap是什么以及使用教程
Qt布局管理--部件拉伸(Stretch)原理及大小策略(sizePolicy)
2022 mathematical modeling competition summer training lecture - optimization method: goal planning
Hcia-r & s self use notes (24) ACL
Common characteristic engineering operations
DAY4:MySQL 数据库的建立及简单实用
DAY6:利用 PHP 编写文件上传页面
大部分PHP程序员,都搞不懂如何安全代码部署
Relationship between redrawing and reflow
使用Qss设置窗体样式