< q>与< p>带引号 [英] <q> versus <p> with quotation marks

查看:123
本文介绍了< q>与< p>带引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

< q> 简明元素会在文字中加上引号:

The <q> element for short quotes adds quotation marks to the text:

<p><q>This is a quote.</q></p>

你能告诉我这是如何有利地简单地使用引号字符

Can you tell me how this is advantageous to simply using quote characters (i.e. " ") directly within a paragraph?

<p>"This is a quote."</p>

可以特殊设计,但似乎可以使用 ; span> 元素,那么< q> 元素的主要优点是什么?

One could style it specially, but it seems like one could use a <span> element for that too, so what's the main advantage(s) of the <q> element?

推荐答案

使用 q 元素的主要优点是它添加到内容的潜在语义,它将内容描述为报价。它还允许具有区域设置信息的浏览器为该区域适当地设置引号的样式,对于大多数英语区域 $ c>和»用于西班牙和法国,等等,适合用户的语言设置。理论上至少。

The main advantage of using the q element is the potential semantic meaning it adds to the content, it describes the content as being a quote. It also allows browsers with the locale information to style the quotation marks appropriately for that region, " for most English-speaking regions, « and » for Spain and France, and so on, appropriate for the user's language settings. In theory, at least.

这篇关于&lt; q&gt;与&lt; p&gt;带引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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