首页  >  文章  >  web前端  >  HTML5语义标签的含义是什么

HTML5语义标签的含义是什么

WBOY
WBOY原创
2022-01-23 13:47:522047浏览

在html5中,语义标签能够清楚的描述其意义给浏览器和开发者,也就是尽量使用有相对应的结构的含义的Html的标签,语义标签包括“footer”、“header”、“nav”、“figcaption”标签等等。

HTML5语义标签的含义是什么

本教程操作环境:windows10系统、HTML5版、Dell G3电脑。

HTML5语义标签的含义是什么

语义= 意义

语义元素 = 有意义的元素

什么是语义元素?

一个语义元素能够清楚的描述其意义给浏览器和开发者。

无语义 元素实例: dc6dce4a544fdca2df29d5ac0ea9906b 和 45a2772a6b6107b401db3c9b82c049c2 - 无需考虑内容.

语义元素实例: ff9c23ada1bcecdd1a0fb5d5a0f18437, f5d188ed2c074f8b944552db028f98a1, and a1f02c36ba31691bcfe87b2722de723b - 清楚的定义了它的内容.

许多现有网站都包含以下HTML代码: 8b1ac108cbaa4395859772f3c8fb2044, 1b6d1ea1e7e21dbaa4f7555e39395778, 或者 33a922c0ba3c41a8b1829949e269a139, 来指明导航链接, 头部, 以及尾部.

HTML5 提供了新的语义元素来明确一个Web页面的不同部分:

  • 1aa9e5d373740b65a0cc8f0a02150c53

  • c787b9a589a3ece771e842a6176cf8e9

  • 2f8332c8dcfd5c7dec030a070bf652c3

  • 23c3de37f2f9ebcb477c4a90aac6fffd

  • 15221ee8cba27fc1d7a26c47a001eb9b

  • 614eb9dc63b3fb809437a716aa228d24

  • 24203f2f45e6606542ba09fd2181843a

  • c37f8231a37e88427e62669260f0074d

12.png

示例如下:

2f8332c8dcfd5c7dec030a070bf652c3 标签定义文档中的节(section、区段)。比如章节、页眉、页脚或文档中的其他部分。


 
 
123 


WWF

The World Wide Fund for Nature (WWF) is an international organization working on issues regarding the conservation, research and restoration of the environment, formerly named the World Wildlife Fund. WWF was founded in 1961.

WWF's Panda symbol

The Panda has become the symbol of WWF. The well-known panda logo of WWF originated from a panda named Chi Chi that was transferred from the Beijing Zoo to the London Zoo in the same year of the establishment of WWF.

输出结果:

13.png

推荐教程:《html视频教程

以上是HTML5语义标签的含义是什么的详细内容。更多信息请关注PHP中文网其他相关文章!

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn