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>

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

相关推荐
egghead2631611 分钟前
React常用hooks
前端·react.js
科粒KL14 分钟前
前端学习笔记-浏览器渲染管线/一帧生命周期/框架更新
前端·面试
凉_橙19 分钟前
什么是抽象语法树?
前端·javascript
成小白20 分钟前
前端实现分片上传
前端
页面魔术23 分钟前
尤雨溪: 我们没有放弃虚拟 dom
前端·javascript·vue.js
欧阳码农25 分钟前
langgraph开发Deep Research智能体-项目搭建
前端·后端·langchain
再吃一根胡萝卜26 分钟前
TCP三次握手机制的深入解析
前端
用户479492835691526 分钟前
Biome:用 Rust 重构前端开发体验
前端·代码规范
BigYe程普27 分钟前
出海技术栈集成教程(二):Supabase 登录与数据库配置
前端·后端·全栈
京东云开发者1 小时前
【灯塔计划】 浏览器崩溃的第一性原理:内存管理的艺术
前端