码迷,mamicode.com
首页 > Web开发 > 详细

html 标签

时间:2016-04-07 20:51:52      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:

1、块级标签    div    p    h
      内联标签    span    a    label    input    form    img
   
2、各种符号
      空格

3、标签
(重要的标签)
input系列
select
textarea
form

布局标签
div
span

a
img
table

(次要的标签)
H,ul,li,ol,dl,,br,hr

4、属性
    公共属性:id、name(一般只用于提交数据)、style(定义样式)、class

    专属属性
    input:text,password
            <input type=‘text‘ value="123" />
    input:button,submit
            <input type=‘submit‘ value=‘BTN’ />

    input:checbox
            <input type=‘checkbox‘ checked=“checked” /> #默认选中
            * checked=“checked”

    input:radio
            <input name=‘gender‘ type=‘radio‘ />
            <input name=‘gender‘ type=‘radio‘ />
            * name值一样用来互斥
            * checked=“checked”


    input:file

        如果想要提交文件,需要在其所在form标签中添加特殊的一个属性:

   <form acion=‘...‘ enctype=‘multipart/form-data‘ method=‘POST‘>

        <input type=‘‘text />

        <input type=‘file‘ />

    </form>

    * 对form标签要求


    form

        <form action=‘‘>

            要提交的所有标签

        </form>

            *action,提交到某一个地址


    textarea

        <taxtarea name="xxx"></taxtarea>



    ===========
    select
        <select>
            #若是要提交的话,提交的事value的值,不会是广州,这里相当于字典
            <option value="3" selected="selected">广州</option>
        <select>
        *option,value,提交数据时, value
        * selected=‘selected‘

    table:
        table,
            thead,tbody
            tr:行
                td:列     # 列必须在行里
                    合并单元格,colspan,rowspan











































html 标签

标签:

原文地址:http://www.cnblogs.com/bruceg/p/5365009.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!