html5语义元素

1、参考:HTML5 语义元素 | 菜鸟教程

2、实战

HTML5 <section> 元素

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

根据W3C HTML5文档: section 包含了一组内容及其标题。

复制代码
<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>菜鸟教程(runoob.com)</title> 
</head>
<body>

<section>
  <h1>WWF</h1>
  <p>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.</p>
</section>

<section>
  <h1>WWF's Panda symbol</h1>
  <p>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.</p>
</section>

</body>
</html>

在手机浏览器中打开,截图如下:

相关推荐
IT_陈寒2 小时前
Vue的响应式把我坑惨了,原来问题出在这
前端·人工智能·后端
2603_953527992 小时前
WordPress Finale Lite 插件高危漏洞检测与利用工具 (CVE-2024-30485)
前端·python·安全·web3·xss
2601_949818093 小时前
头歌答案--爬虫实战
java·前端·爬虫
猫猫不是喵喵.3 小时前
layui表单项次大数据量导入并提交
前端·javascript·layui
张小潇4 小时前
AOSP15 WMS/AMS系统开发 - 窗口层级源码分析
android·前端
whuhewei4 小时前
HTTP1/2/3演变
前端·计算机网络
腹黑天蝎座4 小时前
从零实现一个前端监控系统:性能、错误与用户行为全方位监控
前端·监控
人工智能研究所5 小时前
Claude + HyperFrames:用 HTML 方式制作视频,AI 时代一切皆可 HTML?
人工智能·html·音视频·ai 视频·hyperframes·claude-
Hooray5 小时前
为了在 Vue 项目里用上想要的 React 组件,我写了这个 skill
前端·ai编程
咸鱼翻身了么5 小时前
模仿ai数据流 开箱即用
前端