< aside>之间有什么区别?和< blockquote>HTML5中添加标签? [英] What are differences between <aside> and <blockquote> tags in HTML5?

查看:94
本文介绍了< aside>之间有什么区别?和< blockquote>HTML5中添加标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于此主题的文章有几篇,但我无法理解< aside> < blockquote> 之间的相关区别.

There are several articles about this topic but I'm not able to understand the relevant difference between <aside> and <blockquote>.

推荐答案

来自与HTML5中的Blockquote":

  • 如果您可以从页面中删除< aside> ,并且切向的内容不完整,则您不应该使用< aside> .
  • 如果您可以从页面中删除< blockquote> ,并且即使没有该内容,该内容也将是完整的,那么您不应该使用< blockquote> .
  • If you can remove an <aside> from the page, and the content to which it’s tangential becomes incomplete, then you should not be using <aside>.
  • If you can remove a <blockquote> from the page, and the content around it is complete even without it, then you should not be using <blockquote>.

因此,仅可使用< blockquote> 引用作为主要内容一部分的外部资源,而不是引用具有装饰性或在主要内容中重复的侧面"内容.本文中的两个引号都是合法的< blockquote> 内容,因为没有它们,内容将是不完整的.

So only use <blockquote> to quote external sources that are part of the primary content, not for ‘side’ content that’s decorative or is repeated in the primary content. The two quotes in this very article are legitimate <blockquote> content because without them the content would be incomplete.

这篇关于&lt; aside&gt;之间有什么区别?和&lt; blockquote&gt;HTML5中添加标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆