• 2nd Week


    HTML代码 网页链接+文件下载链接+表格+表单 
    <!DOCTYPE html>
    <html>
        <head>
    <meta charset="UTF-8">
            <title>一个网页</title>
        </head>
        <body>
            <h1>这是一个网页</h1>
            <p>在当前窗口打开链接
                <a href="http://www.baidu.com" title="百度">百度</a>
            </p>
            <p>在新窗口中打开链接
                <a href="http://www.baidu.com" target="_blank">百度</a>   
                <a href="http://www.baidu.com" website="百度">百度</a>
            </p>
            <h2>文件下载链接</h2>
            <p>链接到TXT(直接打开)
                <a href="demo.txt">链接</a>
            </p>
            <p>连接到pdf(打开或下载)
                <a href="demo.pdf">链接</a>
            </p>
            <p>连接到RAR(直接下载)
                <a href="demo.rar">链接</a>
            </p>
            <p>网站链接
                <a href="web2.html" title="链接">链接</a>
            </p>
            <ol>
                <li>First,eat</li>
                <li>Second,sleep</li>
            </ol>
            <ul>
                <li>First,eat</li>
                <li>Second,sleep</li>
            </ul>
            <img src="images/apple.jpg" width="30%" alt="Apple Image" title="Apple">
            <table>
                <tr>
                    <th>1</th>
                    <th>2</th>
                    <th>3</th>
                    <th>4</th>
                </tr>
                <tr>
                    <th>a</th>
                    <th>b</th>
                    <th>c</th>
                    <th>d</th>
                </tr>
            </table>
            <form action="action_page.php">
            <p>性别(单选)
                <br>
                    <input type="radio" name="sex" value="male" checked>Male
                    <br>
                    <input type="radio" name="sex" value="female">Female
            </p>
            <p>爱好(多选)
                <br>
                    <input type="checkbox" name="爱好" value="1">游泳<br>
                    <input type="checkbox" name="爱好" value="2">骑行<br>
                    <input type="checkbox" name="爱好" value="3">跑步<br>
                    <input type="checkbox" name="爱好" value="3">足球<br>
            </p>
            <p>
                    First name:<br>
                    <input type="text" name="firstname" value="firstname">
                    <br>
                    Last name:<br>
                    <input type="text" name="lastname" value="lastname">
                    <br><br>
                    <input type="submit" value="Submit">
            </form>
            </p>
        </body>
    </html>
  • 相关阅读:
    解决跨域问题
    封装树形结构数据
    使用脚手架搭建vue项目
    Vue入门之HelloWorld
    element-ui 格式化树形数组在table组件中展示(单元格合并)
    js导出excel,时间格式问题
    webpack代理设置
    null和undefined的区别?
    js Number和parseInt 的区别
    js数据类型
  • 原文地址:https://www.cnblogs.com/flyingcarp/p/9678405.html
Copyright © 2020-2023  润新知