HTML文档设置标记-文本标记

删除回忆录丶 提交于 2020-02-22 02:27:57

1,hn  标题标记共有6个级别,n的范围1~6,不同级别对应显示大小不同的标题,h1最大,h6最小

2,font 字体设置标记

  设置字体的格式,三个常用属性:

  a,size(字体大小)<font size=“3”>取值范围是1~7,浏览器默认是3,XHTML1.0中不支持size属性

  b,color(颜色)<font color=“red”>

  c,face(字体)<font face=“微软雅黑”>

3,b 粗字体标记

4,i 斜字体标记

5,sub 文字下标字体标记

6,sup 文字下标字体标记

7,tt 打印机字体标记

8,cite 引用方式的字体,通常是斜体

9,em 表示强调,通常显示为粗字体

10,strong 表示强调,通常显示为粗字体

11,small 小型字体标记

12,big 大型字体标记

13,u 下划线字体标记

 

eg:

<!DOCTYPE html><html lang="en"><head>    <meta charset="UTF-8">    <title>第四天</title></head><body>    test<br/>    <h1>第四天</h1>    <h2>第四天</h2>    <h3>第四天</h3>    <h4>第四天</h4>    <h5>第四天</h5>    <h6>第四天</h6>    <font size="1" color="red" face="微软雅黑">第四天</font>    <br>    <b>第四天</b>    <br>    <i>第四天</i>    <br>    2<sub>2</sub>    <br>    2<sup>2</sup>    <br>    <cite>第四天</cite>    <br>    <em>第四天</em>     <br>    <strong>第四天</strong>    <br>    <small>第四天</small>    <small><small>第四天</small></small>    <br>    <big>第四天</big>    <br>    <u>第四天</u></body></html>
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!