html

目录

1,添加图标

2.有用的网站

3.基础标签 

4  属性

5 a标签  的属性

6   img     


 

1,添加图标

2.有用的网站

3.基础标签 

 <h>:标题

p:段落

a: href              超链接

imag : src

link rel:也是src       ---------->网页图标

title  ---------------->网页标题

 

4  属性

任何一个标签都有的属性

class        id              style    :行内样式              title:元素额外信息

5 a标签  的属性

    href               target  : "_black“重新打开页面

                                       _parent   _self   _top 不会有新的页面

锚点       a    name="top”                         a   target="#top"

framename

 

6   img     

    src  :   url:统一资源定位符

    alt  ;当图片 不存在的时候, 显示的文字

     height      width

 

7单位       

               px             %

 

8   标签分类

块元素      前后有换行符,有宽高             p       div       h   

行内元素    没有         ,不能                    a

行内块元素    没有   ,可以                      img     

 

9  style ="width:20px;height:20px"

 

10元素转换:

行内---------》块     display:block 

块------------》行内块   display: inline_block

块------------》行内        display: inline

11  span    行内元素

12  列表

 ul      li    无序       

         ol                  li   有序  

        ul  块元素     li  块元素

    list-style:none  去掉 点(ul加)

       把li从 竖线变成 横线 :   就是把 li 的块 变成   行内块  display:inline-block(li加)

 

13   a   去下划线 text-decoration :none  

 

14元素隐藏

    (1)   display:none  (不存在了)不占位隐藏

   (2)  visibility:hidden   (位置存在)  占位隐藏

在 块元素   可以用 ,  其他的不知道

15表格 table   块元素  th   tr   td  

table        th     tr    td

tr   th

tr   td

table    border=1px   边框宽度    cellpadding=0px 内容和边框的距离       cellspace=0单元格之间距离

td     align =center  left  right  

16  div  块元素

17表单  form

form  

input

input  type=  text  ,button, radio ,checkbox             input------>行内块  不能换行,嫩设置大小

         text  

          button   

          radio        name 单选  都得一样    checked :checked;

       password

       date

      datetime

         checkbox   

     hidden  用 隐藏域

下拉列表  select   option     

 

textarea  cols="100"   rows="100"

 

 

 

 

 

 

 

 

 

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值