zoukankan      html  css  js  c++  java
  • html学习框架

    html的标签以及常用的属性

    1.段落标签 :<p> <br>

    2.文字标签:font-size

    <h1><font face = "verdana">666666</font></h1>
    <p><font size = "5" face = "arial" color = "red">89789789</font></p>
    3.图片标签 :img
    <img src="/i/eg_tulip.jpg" alt="郁金香">
    4.超链接标签:a
    <a href="https://jeesite.gitee.io/">jeesite</a>
    5.列表标签:ul  li
    <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>
    6.表格标签:table
    <table>
            <tr>
                <th>1</th>
                <th>2</th>
            </tr>
            <tr>
                <th>3</th>
                <td>4</td>
            </tr>
        </table>
    7.表单标签:form
     <form action="/demo/demo_form.asp">
            登录:<br>
            <input type="text" name="firstname">
            <br>
            密码:<br>
            <input type="text" name="lastname">
            <br>
            <button>登录</button>
    </form>
    html5新增标签和属性
    canvas:通过标签定义图形,一般它会通过js去画一个图形。
     <canvas id="myCanvas">画一个图像</canvas>
        <script type="text/javascript">
            var canvas = document.getElementById('myCanvas');
            var ctx = canvas.getContext('2d');
            ctx.fillStyle='#FF0000';
            ctx.fillRect(0,0,80,100);
        </script>
    html5的属性:
    标准属性和事件属性,自行w3c。
    媒体的标签:
     
     
     
     
  • 相关阅读:
    国庆七天乐——第二天
    国庆七天乐——第一天
    线段树+树状数组+分块+循环展开 的模板
    AOE网络——求关键路径
    最小生成树模板+并查集(隐藏)+结构体排序模板
    并查集模板
    最短路径模板总结
    newifi mini将led指示灯引出当gpio使用
    openwrt 无线中继
    笔记本硬盘盒改装台式机硬盘盒
  • 原文地址:https://www.cnblogs.com/qijiang123/p/12150731.html
Copyright © 2011-2022 走看看