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。
    媒体的标签:
     
     
     
     
  • 相关阅读:
    Linux-线程同步(day14续)
    Linux之线程(day14)
    Linux-网络编程-UDP网络编程(day13续2)
    ES6 模块加载
    let与var声明区别
    vue 常用指令v-if v-else v-show v-for
    动态路由的意义,以及路由重定向
    前端路由的理解
    socpe 与 包的引入
    VUE 组件注册(全局、局部)
  • 原文地址:https://www.cnblogs.com/qijiang123/p/12150731.html
Copyright © 2011-2022 走看看