HTML <big>标签(HTML5不支持)
HTML <big>标签作用
HTML <big>标签用于将文本字体大小增加到比文档的基本字体大小或周围的字体大一级。文字大小,例如小到中,中到大等。
注意:注意:HTML5不再支持HTML <big>标签,因此可以使用CSS来增加字体大小。
语法
以下是有关<big>标签的一些规范
显示 |
内联 |
开始标签/结束标签 |
开始标签和结束标签 |
用法 |
字体和网页排版 |
示例
<!DOCTYPE html>
<html>
<head>
<title>Big tag</title>
</head>
<body>
<h2>Example of HTML big tag</h2>
<p style="color:#ff4040">This is paragraph with normal font size</p>
<p style="color:#00bfff">
<big>This is paragraph with font size greater than the previous content</big>
</p>
</body>
</html>
输出:
使用CSS属性增加字体大小:
<!DOCTYPE html>
<html>
<head>
<style>
.fsize{
font-size: 18px;
color: red;
}
</style>
</head>
<body>
<h2>Example to change font size using CSS</h2>
<p>The paragraph content with default font size</p>
<p class="fsize">The paragraph content with CSS to increase font size</p>
</body>
</html>
输出:
属性
标签特定的属性
<big>元素不包含任何特定的属性。
全局属性
<big>元素支持HTML中的全局属性。
支持浏览器