HTML教程 引用标签的使用

新的块引用。
一个文件
输入。

搭建主体结构。

标题设置为“使用关系标签”。

标签表示引用。

在正文中包含
引用内容


运行即可生效。

HTML主要内容怎么标记_HTML的main标签使用教程

嘿兄弟,你最近在做网页开发吗?我最近一直在研究新的 HTML5 标签,其中之一就是“主题”标签。
我记得几年前我刚开始建网站的时候,这个标题当时还不太流行。
现在想来,你真后悔没有早点使用它。

当时在做一个电商网站,页面内容很多,比如产品介绍、用户评论、底部导航等,当时都是用
区域来划分的,比较乱,不容易保存。
现在想,直接用
标签包裹核心内容,视觉上就清晰了。

我记得有一次,一位 SEO 专家来到我的工作室,查看了我的代码,并说我的方法对搜索引擎不友好。
He said that you should use the tag so that search engines can better understand the structure of your page. I was confused at the time, but I quickly changed when I returned.
Now I use the
tag, I feel the page structure is much clearer and the user experience is better. After using this tag on the page I built earlier, its ranking improved and its traffic increased. This time I finally realized that this tag is really useful for SEO.
此外,使用此标签创建的页面可以通过辅助技术(例如屏幕阅读器)更好地理解,这对于视障用户来说是一个很好的体验。

Oh, by the way, another advantage of using this tag is that it can distinguish between core content and auxiliary content. I had a plan before and the contact information was at the bottom of the page.我本来想把它放在第一位,但后来我想了想,决定使用
标签,这样会更清晰。

总之,这个标签非常有用,尤其是在构建新网站时。
但使用此标签时要小心。
每页只能有一个,不要使用太多。
Also, it cannot be placed inside a
,
or nav>, please note.
By the way, you should also use CSS to style this label.可以调整宽度、颜色等。
我之前在项目的
标签中添加了样式,看起来还不错。

All in all, this title is a good deal and worth the effort.如果您还没有使用过,您可以尝试一下,一定会提高您网站的质量。
😄