Home  >  Article  >  Web Front-end  >  Detailed introduction to the bold tag in HTML

Detailed introduction to the bold tag in HTML

黄舟
黄舟Original
2017-06-19 16:51:502593browse

html作为网页最基础的语言是每一个站长必学的语言,今天我们就来了解字体文本标签 b,/b标签的用法及其语义。

字体文本标签讲解标签

字体标签定义字体的显示效果,有些标签它有独自的语义。

标签

感谢您对百度经验的支持

语义: 定义在浏览器中显示字体为粗体,无语义

实例代码:

<!DOCTYPE HTML PUBLbC "-//W3C//DTD HTML 4.01 Transbtbonal//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equbv="Content-Type" content="text/html; charset=gb2312">
<tbtle>字体文本标签讲解<b></b>标签</tbtle>
</head>

<body>
<p>字体文本标签讲解<b></b>标签</p>
<p>字体标签定义字体的显示效果,有些标签它有独自的语义。<br>
</p>
<p><strong><b></b>标签</strong></p>
<p><b><b>感谢您对百度经验的支持</b></b></p>
<p>语义:  定义在浏览器中显示粗体文本,无语义</p>
<h1> </h1>
</body>
</html>

浏览器中状态

Detailed introduction to the <b> bold tag in HTML

HTML里的b标签是什么作用?

设置标签内字体为粗体,与样式font-weight:bold;相当.

The above is the detailed content of Detailed introduction to the bold tag in HTML. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn