我应该使用哪个元素短组外国语言单词? [英] Which element should I use for short group of foreign langague words?

查看:101
本文介绍了我应该使用哪个元素短组外国语言单词?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道应该在句子或段落中使用哪个html元素(比如说< p> strong>用于借用的单词或外语的单词,引用有效的语义。这里的几个例子:

I'm wondering which html element I should use in a sentence or a paragraph (let say a <p> block) for a borrowed word or one in a foreign language, refering to a valid semantic. Here a few examples :


今晚, strong> rendez-vous 与一个可爱的女孩。 (使用法语单词)

Tonight, I have a rendez-vous with a cute girl. (use of a French word)

他不是大声说话,而是不是默默地,而是 mezzo voce (使用意大利语)

He was not speaking loudly, but not more silently, indeed mezzo voce (use of an Italian word)



法语



In French


Java n'est paspopriétaire, de .Net

Java n'est pas popriétaire, a contrario de .Net

在法语中,至少,使用外语需要斜体格式。

In French, at least, this use of a foreign language require an italic formatting.

所以我想结合语义和演示。 关于语义HTML的维基百科文章给我一个提示,但我不相信到目前为止。此外,我可能不能控制CSS,例如在文档(wiki)或描述文件(pom)
哪个元素适合我的要求最好:

So I would like to combine both semantic and presentation. Wikipedia article on Semantic HTML give me a hint but I'm not convinced so far. Moreover, I might not have control over CSS, for instance in documentation (wiki), or in a description file (pom) Which element suit my requierements the best :


  • < i> (当然不是:))

  • < em> (也许不是:))

  • < cite>

  • < span lang =latin>

  • =borrowed>

  • 组合这些

  • <i> (surely not :) )
  • <em> (maybe not :) )
  • <cite>
  • <span lang="latin">
  • <span class="borrowed">
  • combinaison of these ones
  • an other tag

推荐答案

W3C


i 元素表示替代语音或情绪中的文本跨度,或者以指示不同质量的文本的方式偏离正常散文,例如分类标记,技术术语

The i element represents a span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase from another language, transliteration, a thought, or a ship name in Western texts.

是另一种语言的惯用短语,音译,思想或船名。 > 我的重点

My Emphasis

他们的例子

 <p>There is a certain <i lang="fr">je ne sais quoi</i> in the air.</p>

这篇关于我应该使用哪个元素短组外国语言单词?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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