在本教程中,您将了解一些 HTML格式化。文本格式元素是HTML根据其外观提高文本格式的能力。
HTML格式化元素是我们可以使用的一些重要预格式元素,以提供文本格式,最好的部分是所有格式都在没有任何CSS代码的情况下完成。
HTML格式化元素
- 粗体文字
- 斜体文本
- 强大的文本
- 强调 Text
- 强调 Text
- 标记 Text
- 下标 Text
- 上标 Text
- 大的 Text
- 小的 Text
- 删除 Text
- 罢工 Text
- 插入 Text
- 代码 Text
- 打字机文本
强大的文本
强标签用于粗体并提供 对文本的语义重要性。
<strong>This is example of strong text</strong>
粗体文字
粗体用于粗体文本。一些标签在文本的可视化中工作相同,但重要的是它的重要性。
<b>This is example of bold text</b>
斜体文本
斜体用于显示斜体中的文本。
<i>This is example of italic text</i>
强调 Text
它用于表示对文本的压力强调,并强调元素类似于斜体元素。两者都是相同的,但它提供了语义重要性或斜体。
<emp>This is example of emphasized text</emp>
强调 Text
顾名思义,它用于显示为文本的某些部件为下划线。
<u>This is example of underline text</u>
标记 Text
有时您需要突出段落中的一些文本。因此,当时,您必须使用标记元素并将文本放入打开和关闭标记标签中。
<mark>This is example of mark text</mark>
下标 Text
它用于将文本写在正常文本下方,尺寸小。当您创建与数学或化学相关的网站时,并将文本添加在基础上 102 或H.2o.
<sub>This is example of subscript text</sub>
上标文本
它用于将文本写在正常文本上方,尺寸小。 当你 必须在这样的电源上添加文本 102.
<sup>This is example of superscript text</sup>
大的 Text
大的 Element用于增加其他文本的文本。
<big>This is example of big text</big>
小文本
小元素用于减少关于其他文本的文本。
<small>This is example of small text</small>
删除 Text
如果您必须显示已删除数据或文本,则使用删除元素。
<del>This is example of delete text</del>
罢工 Text
当您必须在文本中使用醒目或水平线时,使用Trickethgrough将文本放在打开和关闭标签中。
<strike>This is example of strike text</strike>
插入 Text
插入元素表示文本已添加到文档中
<ins>This is example of insert text</ins>
代码文本
代码元素通常在必须添加源代码时使用。
<code>This is example of code text</code>
打字机文本
当您显示像打字机类型文本外观等文本时。
<tt>This is example of typewriter text</tt>
暂无评论:
如果您有任何疑问,请告诉我