`

网页标记

阅读更多

块级元素——自动换行

1、blockquote<blockquote></blockquote>缩进

2、定义列表——o(rdered)l、li有序表;u(nordered)l、li无序表;d(efined)ld(efined)t(erm)、dd定义表

3、form<form action="form处理后的目的地" method="get(显示)|post(保密)" name="" id=""  accept="服务器可接受类型" enctype="数据编码(内容)类型form/multipart;" accept-charset="可用字符集列表" >

 表单字段需要名称。所以所有的字段中都需要增加名称属性name

 <input  type="text(文本)|password(密码)|radio(单选)|checkbox(复选)checked、name|button(按钮)|image(图标按钮)value=submit|reset|submit(提交表单)|reset(重置)|file(文件上传enctype=“form/multipart”)|hidde你(隐藏字段)" id="" size=""maxlength=""></input>

 

<select><option value=""> 显示文字<option>

          .multiple——设置多选

          .

          .

        <option value="" selected="selected"> 显示文字<option>

</select> 

 

 <textarea  rows="" cols=""  ></textarea> 

 </form>——用户输入/提交数据的图形界面

4、fieldset——表单元素容器<fieldset><legend>fieldset的标题</legend>……</fieldset>

5、h1~h6 <hn></hn>   h1>>h6

6、hr

7、p(aragraph)<p></p>

8、pre<pre></pre>格式整体搬迁

9、table<table>
            <tr>
                <th>标题</th>
                <td></td>
                <td></td>
            </tr>
             <tr>

                <td></td>
                <td></td>
                <td></td>
            </tr>
     </table>
 
border——边框粗细、th——表标题 colspan——横向合并、rowspan——纵向合并


10、division<head><style> div{属性的描述} </style></head>  <body><div></div><body>元素可以是多媒体任何内容



内嵌元素
1、span<head><style>span{属性的描述} </style></head><body><div></div><body>部分(精确调整)、文本字符<span class="描述">…………</span>

2、a <a href="相对URL"要求始于同根>描述文本</a>——相对链接;<a href="ftp://ftp.example.com/pub/example.zip">描述文本</a>——绝对连接

描点<a name="chapter01">第一章</a>——建立描点;<a href="book.xhtml#chapter01">连接到第一张</a>——连接到描点

其他属性:tittle accesskey  tabindex

3、img<img src="文件名" alt="注释文本"></img>      *.gif、*.gpg

4、label<lable for="关联标记的ID">显示文字</lable>

5、iframe<iframe src="url被调入外部网页" width="x" height="y" scrolling="[auto|yes|no]" frameborder="0|1" name="内部框架名称">
</iframe>

6、object flash\mp3\视频

<object type="application/x-shockwave-flash" data="Flash路径" width="Flash宽度" height="Flash高度" id="">

<param name="movie" value="flash文件路径"/>

.

.

.

<param name="" value=""/>

</object>

元标记(meta)

<meta http-equiv="Content-Type" content="content-type(类型)/expires(时效)/refresh(刷新/set-cookie(设置cookie)text/html; charset=UTF-8" />

 <meta name="(作者)author/(关键词)keywords/(描述)description" content="This is my bloody exciting web page about air conditioners" />
其它属性

定位tabindex="n"

快捷键accesskey="键盘按钮"

数据保护readonly="readonly" disabled="disabled"

分享到:
评论
1 楼 漫天飞舞灬鹰03 2012-03-25  
1

相关推荐

Global site tag (gtag.js) - Google Analytics