jsp所有字体及⽰例_HTML粗体标签⽤法和⽰例
jsp 所有字体及⽰例
HTML provides different tags for styling. Bold  <b> tag is used to make given text bold which is ticker than a normal one. Bold tag is used for the start and end of the text to specify the text we want to make bold.
HTML提供了不同的样式标签。 粗体<b>标记⽤于使给定⽂本变为粗体,⽐普通⽂本要细。 粗体标签⽤于⽂本的开头和结尾,以指定我们要使其变为粗体的⽂本。
<b>粗体标签 (<b> Bold Tag)
As stated previously bold tag is used by specifying the start and the end of the text block we want to make bold. Bold tag is only effective in the normal text which means using the bold tag in Header tags like H1, h2 do not have any difference.
如前所述,通过指定我们要设为粗体的⽂本块的开始和结尾来使⽤粗体标签。 粗体标签仅在普通⽂本中有效,这意味着在标题标签(如
H1,h2)中使⽤粗体标签没有任何区别。
<html>
<body>
<h1><b>This header is bold</b></h1>
<h1>This header is not bold</h1>
<b>This text is bold</b>
<br>
This text is not bold
</body>
</html>
<b> Bold Tag
<b>粗体标签
⽤CSS粗体(Make Bold with CSS)
Bold is generally used as a tag inside the HTML body by surrounding the text. But We can make the bold specified text by using CSS. The CSS attribute is named font-weight like below. In this example, we will define a CSS class named bold and apply by using span tag like below.
粗体通常在HTML正⽂中通过包围⽂本⽤作标记。 但是我们可以使⽤CSS制作粗体指定的⽂本。 CSS属性命名为font-weight如下所⽰。 在此⽰例中,我们将定义⼀个名为bold CSS类,并使⽤如下所⽰的span标签进⾏应⽤。
<html>
<body>
<span >This text is bold</span><br>
This text is not bold
<div > This div  content is bold</div>
This div content is not bold
</body>
</html>
Make Bold with CSS
⽤CSS粗体
HTML没有<bold>标记(HTML Do Not Have <bold> Tag)
Some novice web programmers and designers assume that there is a tag named <bold>. This is not true. The bold tag is represented as <b> not with <bold> If we try to use <bold> as a tag it will not work like below.
⼀些新⼿Web程序员和设计师假定存在⼀个名为<bold>的标记。 这不是真的。 粗体标记⽤<b>表⽰,⽽不⽤<bold>表⽰。如果我们尝试使⽤<bold>作为标记,则它将⽆法像下⾯那样⼯作。
<html>
<body>
<b>This text is bold</b> <br>
<bold>This text is not bold</bold>
<br>
This text is not bold
</body>
</html>
⽂字格式元素 (Text Formatting Elements)
Bold tag is named as text formatting element and there are other text formatting elements that can be used for different purposes. Some of the text formatting elements or tags may provide a similar experience to the bold but they are not the same.
粗体标记被命名为⽂本格式设置元素,还有其他⽂本格式设置元素可⽤于不同⽬的。 某些⽂本格式设置元素或标记可能会提供与粗体字相似的体验,但它们并不相同。
<b> is used for bold text.
<b>⽤于粗体⽂本。
<strong> is used for important text.
<strong>⽤于重要⽂本。
<i>  is used for italic text where the text will be leaned
<i>⽤于倾斜⽂本的斜体
<em> is used for emphasized text
<em>⽤于强调⽂字
<mark> is used for marking text
<mark>⽤于标记⽂本
<small> is used for making text smaller
<small>⽤于缩⼩⽂本
<del> deleted text
<del>删除的⽂字
<ins> is used for inserted text
jsp创建
<ins>⽤于插⼊⽂本
<sub> is used for subscribed text
<sub>⽤于订阅的⽂本
<sup> is used superscript like formulas
<sup>⽤于上标,例如公式
粗体标记替代⽅案强⼒标记,强调,标记,Head1(Bold Tag Alternatives Strong Tag, Emphasize, Mark, Head1)
There are some tags that are similar to bold investigate them which are used for what and differences with the <bold> tag.
有⼀些类似于⿊体的标记,它们⽤于与<bold>标记的区别。
<b>  is used to differentiate stylistically from other text and there is no extra importance, keyword, product name.
<b>⽤于在样式上与其他⽂本区分开,并且没有额外的重要性,关键字,产品名称。
<em> is used to stress the emphasis of its contents. This can be a keyword, product name, etc.
<em>⽤于强调其内容的重点。 这可以是关键字,产品名称等。
<h1> , <h2> , <h3> , … are used to create headers which simply describes text sections or parts .
<h1>,<h2>,<h3>,...⽤于创建仅描述⽂本部分或部分的标题。
<mark> is used to reference some keyword, name, header, etc at the end of the document.
<mark>⽤于在⽂档末尾引⽤⼀些关键字,名称,标题等。
<strong>  is used to provide some important to the given text.
<strong>⽤于为给定的⽂本提供⼀些重要信息。
<html>
<body>
<b>This text is bold</b> <br>
<em> This text is em </em> <br>
<mark> This text is mark </mark> <br>
<h1> This text is h1 </h1>
<br>
<strong> This text is strong </strong> <br>
</body>
</html>
Bold Tag Alternatives Strong Tag, Emphasize, Mark, Head1
粗体标记替代⽅案强⼒标记,强调,标记,Head1
了解更多如何在HTML中添加图像?
jsp 所有字体及⽰例

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。