定義及用法 Definition and Usage
當文本中部分內容有強烈的重要性,就用<strong>。
可使用的屬性 Attributes
支援全域屬性(Global Attributes)及事件屬性(Event Attributes)
範例 Examples
範例 1 example:
<p><strong>Warning.</strong> This dungeon is dangerous. <strong>Avoid the ducks.</strong> Take any gold you find. <strong><strong>Do not take any of the diamonds</strong>, they are explosive and <strong>will destroy anything within ten meters.</strong></strong> You have been warned.</p>
Demo結果如下
Warning. This dungeon is dangerous. Avoid the ducks. Take any gold you find. Do not take any of the diamonds, they are explosive and will destroy anything within ten meters. You have been warned.
<strong>的意義就是把文本中重要的內容給標記,所以一則敘述中,若是<strong>元素愈多,代表著這則敘述佔文章的地位愈重。範例 1 是一個遊戲的警告訊息,這個範例有趣之處在於,其中在描述「Do not take any of the diamonds」這個地方嵌進了 2 個<strong>,代表這段文字是「重要中的重要」,不過在視覺上是沒有什麼差別的啦。
css html样本供学习
回覆刪除按钮标记强标记图像标记