< EM>与< I>和< strong>与< b> [英] <em> vs.<i> and <strong> vs. <b>

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

问题描述

我已经开始清理HTML并实现CSS了。到目前为止,我已经使用了FrontPage,但我正在切换到DreamWeaver。


在W3Schools.com和W3.org上阅读一下我看到了很多

的HTML代码我从来都不知道存在。其中有< em>。和

< strong>。这两者和< i>之间的区别是什么?和< b>?


-

Torbj?Petteren

编辑/网站管理员

FantaFiction

www.fantafiction.com

I''ve started cleaning up my HTML and implementing CSS. So far I''ve
used FrontPage, but am switching over to DreamWeaver.

Reading a bit on W3Schools.com and W3.org I see there are a lot
of HTML code I never even knew existed. Among these are <em> and
<strong>. What''s the difference between these two and <i> and <b>?

--
Torbj?rn Pettersen
Editor/Webmaster
FantaFiction

www.fantafiction.com

推荐答案

Torbj?姓Pettersen写道:

Torbj?rn Pettersen wrote:

< em>和< strong>。这两者之间有什么区别?< i>和< b>?
<em> and <strong>. What''s the difference between these two
and <i> and <b>?




< i>除了使这个斜体化之外没有任何语义含义;如果

斜体不可用,则没有后备渲染,我知道


< b>除了使这个大胆之外没有任何语义含义;如果粗体不是

可用,则没有后备渲染,我知道


< em>强调文字;某些浏览器在

斜体中呈现强调文本,但这不是必需的


< strong>意味着强调文本;某些浏览器呈现

强烈强调粗体文本,但这不是必需的


-

Brian(删除无效 ;从我的地址给我发电子邮件)
http://www.tsmchughs.com/


Torbj?姓Pettersen写道:

Torbj?rn Pettersen wrote:

< em>和< strong>。这两者之间有什么区别?< i>和< b>?
<em> and <strong>. What''s the difference between these two
and <i> and <b>?




< i>除了使这个斜体化之外没有任何语义含义;如果

斜体不可用,则没有后备渲染,我知道


< b>除了使这个大胆之外没有任何语义含义;如果粗体不是

可用,则没有后备渲染,我知道


< em>强调文字;某些浏览器在

斜体中呈现强调文本,但这不是必需的


< strong>意味着强调文本;某些浏览器呈现

强烈强调粗体文本,但这不是必需的


-

Brian(删除无效 ;从我的地址给我发电子邮件)
http://www.tsmchughs.com/


Torbj?Petteren< tpe AT broadpark DOT no>写道:
Torbj?rn Pettersen <tpe AT broadpark DOT no> wrote:
在W3Schools.com和W3.org上阅读一下我发现有很多我从未知道的HTML代码。其中有< em>。和
< strong>。这两者和< i>之间的区别是什么?和< b>?
Reading a bit on W3Schools.com and W3.org I see there are a lot
of HTML code I never even knew existed. Among these are <em> and
<strong>. What''s the difference between these two and <i> and <b>?




使用< i>或< b>没有说什么*为什么*你想要斜体或

粗体。它仅指定您想要的演示文稿。


相反,使用< em>,< strong>,< cite>,< var>等指定

结构意义。当典型的默认

演示文稿不合适(或不合适)时,浏览器(或样式表作者)

更容易使用其他演示文稿。

-

Darin McGrew, mc **** @ stanfordalumni.org http://www.rahul.net/mcgrew/

网页设计组, da***@htmlhelp.com http://www.HTMLHelp.com/

永远不要问理发师是否你需要理发。



Using <i> or <b> doesn''t say anything about *why* you want italics or
boldface. It specifies only the presentation that you want.

In contrast, using <em>, <strong>, <cite>, <var>, etc. specifies a
structural meaning. And it''s easier for browsers (or style sheet authors)
to use some other presentation for the structure when the typical default
presentation is inappropriate (or undesired).
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

"Never ask a barber whether you need a haircut."


这篇关于&LT; EM&GT;与&LT; I&GT;和&lt; strong&gt;与&lt; b&gt;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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