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>

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

相关推荐
程序媛_MISS_zhang_0110几秒前
APP中列表到详情,详情返回列表时候,返回定位到之前查看详情那条数据
前端·javascript·vue.js
还有多远.1 分钟前
前端部署后自动检测更新
前端·javascript·vue.js
拾忆,想起4 分钟前
Dubbo本地存根与本地伪装实战指南:提升微服务容错能力的利器
前端·微服务·云原生·架构·dubbo·safari
wuli_滔滔8 分钟前
DevUI弹窗体系重构:微前端场景下的模态管理策略
前端·重构·架构
fruge11 分钟前
Angular 17 新特性深度解析:独立组件 + 信号系统实战
前端·javascript·vue.js
卓码软件测评11 分钟前
第三方软件质量检测机构:【Apifox多格式支持处理JSON、XML、GraphQL等响应类型】
前端·测试工具·正则表达式·测试用例·压力测试
心随雨下14 分钟前
Flutter加载自定义CSS样式文件方法
前端·css·flutter
X***C86217 分钟前
SpringMVC 请求参数接收
前端·javascript·算法
GDAL20 分钟前
css实现元素居中的18种方法
前端·css·面试·html·css3·css居中