zoukankan      html  css  js  c++  java
  • HTML文档设置标记-文本标记

    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>
  • 相关阅读:
    去除bootstrap默认的input和选中时的样式
    js生成二维码
    内网访问已经启动的vue项目
    vue项目未加载完成前显示loading...
    node通过QQ邮箱发送邮件
    Ubuntu 使用crontab做定时任务
    mysqldump 使用及其注意事项
    八大排序之选择类排序
    javax.sound.sampled.AudioInputStream
    java.io.StringBufferInputStream
  • 原文地址:https://www.cnblogs.com/lzp1103/p/7787862.html
Copyright © 2011-2022 走看看