HTML学习笔记

一、预学习

1.标准的HTML格式:

<html>

  <head>

    <title>    </title>

  <body>

 

  </body>

</html>

2.画出一条直线:<hr width=100%>   参数在尖括号内,无参数默认width=100%

3.换行:<br>

4.更改字体颜色:<font color="rgb(0,0,255)">333</font><br><!蓝色>

5.超链接:<a href="file:///D:/test/html.htm">

二、<HEAD>

title 文档标题
meta 描述非html标准的一些文档信息
link 描述当前文档与其他文档之间的连接关系
base 定义体试时默认的外部资源
script 脚本程序内容
style 样式表内容

 <title>略

<meta>:

  1.定义搜索关键字:<meta name="keywords" content="html,css,javascript">

           <meta name="description" content="网页制作">

  2.禁止调用缓存:<meta http-equiv="pragma" content="no-cache">

  3.定义编码:<meta http-equiv="content-type" content="text/html;" charset="GB2312">

  4.刷新页面:<meta http-equiv="refresh" content="60" URL="xxx.htm">

<link>:

  1.<link rel="description" href="URL">

<base>:

  1.<base herf="原始地址" target="目标地址">

<script>:

  1.<script language="VBScript">..............</script>

三、<BODY>

  1.<body bgcolor="颜色值">  设定背景色

  2.<body background="URL">  设定背景图片

  3.<body text="color" link="color" alink="color" vlink="color" leftmargin="value" topmargin="value">

四、正文内:

  1.字体:<hn>Title</hn>设定1~6号字,自动换行。    <hn align="center">居中

      <b>粗体字  <i>斜体字  <del>删除线  <tt>打字  <sup>上标字  <sub>下标字  <!......>注释

      <font color="rgb(0,0,255)" face="arial" size="35">333</font><br><!蓝色>

      <p>段落  <center>居中  <nobr>不跳行

  2.表格:<table></table>

      相关属性 :

      ·align 调整

      ·bgcolor 背景颜色

      ·border 边框

      ·height 高度

      ·width 宽度

      <caption>...</caption> 表格标题。

      <tr>...</tr> 表格行( </tr>可省略 ) <td></td>表格列<th></th>表格卡

  3.标记:<ol type="标记方式">.....</ol>声明标记

      <ul>......</ul>

      <li>每个标记文本

      

      <dt> 定义项目。

      <dd> 定义资料。

      <dl>...</dl> 定义标示。

      如 :

      <dl>

      <dt>十进制 :<dd>0、1、2、3、4、5、6、7、8、9

      <dt>十六进制 :<dd>0、1、2、3、4、5、6、7、8、9、a、b、c、d、e、f </dl>

  4.设置超链接:

      文外:<a herf="URL">.......</a>

      文内:<a name="SET">  (设定超连接点SET)

         <a herf="#SET">....</a>  (跳到SET点)

      

posted on 2014-02-16 15:17  哪吒  阅读(208)  评论(0编辑  收藏  举报