gpt4 book ai didi

html - 在同一文本上同时使用强标记和粗体标记是否有好处?

转载 作者:太空宇宙 更新时间:2023-11-04 16:20:50 25 4
gpt4 key购买 nike

我最近发现一个企业网站在一些文本周围同时使用了 标签,经过检查,这些网站的格式如下,同时包含 <strong>。和 <b> :

<strong><b>Just So We're Clear, This Text is Bold, Folks!</b></strong>

我想知道这是否服务于向后兼容的某种目的,或者它是否仅仅是草率的编码;如果有一些使用两者的用例,我想知道,因为我必须为使用过时硬件/软件的人设计。

我处理电子邮件编码……干巴巴的不如传达要点重要;如果在某些奇怪的极端情况下使用标签更加明确有帮助,我会考虑的。

最佳答案

w3 有 spelled out the use of <b> tags very clearly

最有说服力的:

You should not use b and i tags if there is a more descriptive and relevant tag available. If you do use them, it is usually better to add class attributes that describe the intended meaning of the markup, so that you can distinguish one use from another.

关于html - 在同一文本上同时使用强标记和粗体标记是否有好处?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29439316/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com