图示如下
实例代码如下
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<title>案例三代码</title>
<meta charset="utf-8">
</head>
<body bgcolor="Aqua">
<h1 align="center">哈喽,各位小伙伴大家好 <hr> </h1>
<h3 align="center">今 天 更 新 的 是 有 关 于 文 字 样 式 的 相 关 设 置 哦!</h3>
<p>1. b元素 作用: <b>加粗文字</b></p>
<p>2. br元素 作用:强制换行</p>
<p>3. i元素 作用: <i>使文字倾斜</i></p>
<p>4. del元素 作用: <del>删除文字</del></p>
<p>5. strong元素 作用: <strong>实际作用仍然是加粗文字</strong></p>
<p>6. wbr元素 作用:表示对文字进行安全换行 <wbr>This is an quan huan hang</p>
<p>7. em元素 作用:表示强调 <em>实际作用也是让文字倾斜</em></p>
<p>8. s元素 作用: <s>给文字加下划线</s></p>
</body>
</html>