Blogger Information
Blog 14
fans 0
comment 0
visits 9974
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
HTML5新增语义化标签用法总结--2018年8月20日作业
笨笨的博客
Original
749 people have browsed it

一、今晚主讲内容是:HTML5新增的语义化标签用法,以及布局实战,现将HTML5新增语义化语法标签总结如下:

1、<header role="header"></header>  定义页面头部(页眉) role属性意思为当前标签角色(或者说当前标签的作用)

2、<main></main>定义页面主要内容,一个文档只能有一个main标签

3、<nav></nav>定义导航链接

4、<article></article>定义完整的内容块,比如文章详情等

5、<aside></aside>定义页面侧边栏

6、<section></section>定义页面中的一个区块,类似于<div>

7、<footer></footer> 定义页脚(页面底部)

8、<div></div>  定义一个区块,无特殊语义


手抄代码如下:

1.jpg

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post