html-其他常见标签的使用

mac2022-06-30  7

  b:加粗

  s:删除线

  u:下划线

  i:斜体

  per:原样输出

  sup:上标

  sub:下标

  p:段落标签 比br多一行

  (CSS)

    div:自动换行

    span:在一行显示

  完整代码:

<html> <head> <title>World</title> </head> <body> <b>AA</b> <u>BB</u> <i>CC</i> <s>DD</s> <hr/> <pre> <b> public static void main(String[] args) { System.out.println("hello world!"); } </b> <pre> <hr/> 3<sup>100</sup> 100<sub>3</sub> <hr/> <div>这是div1</div> <div>这是div2</div> <div>这是div3</div> <hr/> <span>这是span1</span> <span>这是span2</span> <span>这是span3</span> <hr/> <p>别一喝就醉,风一吹就流泪</p> 毕竟谁都不是谁的谁! </body> </html>

 

转载于:https://www.cnblogs.com/ibabyli/p/9882445.html

最新回复(0)