文本格式化标签
粗体
b ->bold
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>HTML</title>
</head>
<body>
我是平常人<br>
<strong>我是加粗的</strong><br>
<b>我也是加粗的</b><br>
</body>
</html>
效果如下:
斜体
em ->emphasized
i ->Italic
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>HTML</title>
</head>
<body>
我是平常人<br>
<i>我是斜的</i><br>
<em>我也是斜的</em><br>
</body>
</html>
效果如下:
删除线
del ->delete
s ->strikethrough
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
我是正常文字<br>
<del>我是删除线</del><br>
<s>我是删除线</s><br>
</body>
</html>
效果如下:
删除线
ins ->inserted
u ->underlined
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
我是正常文字<br>
<ins>我是下滑线</ins><br>
<u>我也是下滑线</u><br>
</body>
</html>
效果如下: