<cite>、<em> 和 <i> 之间的区别是什么?HTML的标签? [英] What is the difference between <cite>, <em>, and <i> tags of HTML?

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

问题描述

HTML的标签有什么区别?

在大多数浏览器中都呈现相同的默认样式.

这些标签背后有什么意义吗?

谁能举例说明可以在哪里使用这些标签?

解决方案

用于引用(资源或其作者).它们通常与

(都用于引用)一起使用.

表示文本强调(在段落或其他一些文本内容中).

在旧版 HTML 中, 用于表示斜体文本.在 HTML5 中, 已被重新用于 完全是别的东西.(请注意,在最初撰写此答案时,情况并非如此.)

这三个元素的唯一共同点是,这三个元素通常都以斜体形式设置.换句话说,它们都具有相同的默认样式只是巧合.

What is the difference between <cite>, <em>, and <i> tags of HTML ?

All render same default style in most of browsers.

Is there any meaning behind these tags ?

Can anyone give example about where these tags can be used ?

解决方案

<cite> is used for citations (either of resources or of their authors). They are commonly used together with <q> or <blockquote> (both used for quotations).

<em> means text emphasis (in a paragraph or some other text content).

In legacy HTML, <i> used to mean italicized text. In HTML5, <i> has been repurposed into something else entirely. (Note that this was not true at the time this answer was originally written.)

The only thing these three elements have in common is that all three of them are typically set in italics. In other words, the fact that they all have the same default style is mere coincidence.

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

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