zoukankan      html  css  js  c++  java
  • html常用标签

    html结构:

    <html>        html开始标签

        <head>          

            <title>html文档标题</title>     

        </head>

        <body>

            html文档内容....

        </body>

    </html>        html结束标签 

    表格:

    <table>          表格开始标签

      <tr>           行

        <td></td>    列

      </tr>

    </table>        表格结束标签

    表格属性:<table width="" height="" border="" bgcolor="" background="" cellpadding="' cellspacing="" >其中: 为表格的宽度,height:表格的高度,border:表格的边框,

    bgcolor表格的背景颜色,background 表格背景颜色。cellpadding:表格字间距, cellspacing:表格边框间距。

    双标签:

    <b></b> 字体加粗 

    <i></i> 斜体

    <u></u> 字体下划线

    <s></s> 删除线

    <strike></strike> 删除线

    单标签:

    <br /> 换行

    <hr /> 水平线

      

    空格:&nbsp;

    向右双箭头 :&raquo;

    注册商标符:&reg;

    版权符号:&copy;

    双引号:&quot;

    链接

    <a href="#" title="">链接文本/图片</a>

    注:# 换成所要链接的文件相对地址。title:为链接提示信息。

    图片链接:

    <img src="" alt="" width="" hegiht="" >

       src:图片链接相对地址,alt:图片信息, width:图片宽度,height:图片高度。

    表单:

    表单开始标签:<form name="表单名称" method="post/get" action="提交地址">         

    文本框:<input type="text" name="名称" value="值" /> 

    密码框:<input type="password" name="名称" value="值"/>

    单选按钮:<input type="radio" name="名称" checked />    

    复选框:<input type="checkbox" name="名称" checked />

    列表:

        <select>

           <option value="值"></option>

        </select>

    文本区域:<textarea cols="文本的宽度" rows="文本行数"></textarea>

    提交按钮:<input type="submit" name="名称" value="值" />

    重置按钮 <input type="reset" name="名称" value="值" />

    表单结束标签:</form>  

  • 相关阅读:
    阿里云如何跨账号打通,多账号同时享受优惠
    阿里云超长6个月免费套餐汇总
    零门槛申请阿里云1万元代金券
    阿里云包年包月服务器如何退款
    用户名密码注册与登录的应用
    Android 沉浸式状态栏完美解决方案
    Android开发支付集成——微信集成
    Android开发支付集成——支付宝集成
    ExpandableListView的完美实现,JSON数据源,右边自定义图片
    android扫描网页二维码进行网页登录
  • 原文地址:https://www.cnblogs.com/Hale-Proh/p/6875550.html
Copyright © 2011-2022 走看看