html第一堂课

1.meta介绍:

  • 作用:指定搜索引擎用来提高搜索质量的关键字,一般搜索引擎会搜索title和keywords
  • 分类
    <meta name="keywords" content="网页制作,代码学习"/>
    <meta name="descriptions" content="神奇的网页"/>
    <meta name="author" content="秦凯"/>
    <meta name="content-type" content="text/html;charset=utf-8"/>
    <!--content="3"代表3秒刷新一次>
    <meta http-equiv="refresh" content="3"/> <meta charset="utf-8"/>

     

2.转义字符:

&nbsp;空格   &copy;版权字符  &reg;

&lt;<  &gt;>  &amp;&

 

3.块元素和行内元素

  • 块元素:独占一行,会与上下内容换行 <p> <h1> <div> <hr width="300px"/> <hr width="50%"/>分割线  备注:hr有三个属性常用:width,size和color,其中size表示的是下滑线的粗细
  • 行内元素:不换行<span> <s>删除线<s>  <b>加粗</b>  <i>斜体</i>  <u>下划线</u>  <sub>下标</sub> <sup>上标</sup>

  备注:XHTML推荐:<strong>加粗</strong>  <em>斜体</em>

 

4.元素常用的属性

id  title  class  style  

 

posted @ 2017-07-21 13:20  键盘AQ  阅读(179)  评论(0编辑  收藏  举报