- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我最近发现一个企业网站在一些文本周围同时使用了 和 标签,经过检查,这些网站的格式如下,同时包含 <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
andi
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/
下面是我用来制作 1px 文本描边轮廓的代码。但是如何使轮廓变粗呢?如果我只是用“5px”替换所有“1px”,结果看起来很疯狂。 HTML Hello! CSS .element { color:
我是一名优秀的程序员,十分优秀!