HTML5 格式化方式以及应用

<b>加粗字体

<big>定义大号字体

<em>定义着重文字

<i>定义斜体字

<small>定义小号字体

<strong>定义加重语气

<sub>定义上标

<sup>定义下标

<ins>插入字

<del>删除字

以下是以上格式化的使用方法:

<!DOCTYPE html>
<html>
<head lang="en">//定义语言,en是英语。zh是中文
    <meta charset="UTF-8">//编码格式
    <title>this is the third project</title>//名字
</head>
<body bgcolor="#00ffff">//背景颜色
    <a href="hrefHtml.html" target="_blank">打开本地的目录</a>//给标签<a>添加打开方式,当中_blank表示在新的一页打开
 <h1 align="center">标题1</h1>//h1-h6是6种标题方式,自己都能够尝试一下看看是什么效果
    <h2 class="H2ID">标题2</h2>
    <b>欢迎来学习HTML5</b>
    <br/>//空标签,用来换行
    <big>欢迎来学习HTML5</big>
    <br/>
    <em>欢迎来学习HTML5</em>
    <br/>
    <i>欢迎来学习HTML5</i>
    <br/>
    <small>欢迎来学习HTML5</small>
    <br/>
    <strong>欢迎来学习HTML5</strong>
    <br/>
    大家好<sub>欢迎来学习HTML5</sub>/嘎嘎
    <br/>
    大家好<sup>欢迎来学习HTML5</sup>嘎嘎
    <br/>
    <ins>欢迎</ins><br/>
    <del>来到</del><br/>
</body>
</html>

原文地址:https://www.cnblogs.com/yfceshi/p/7003573.html