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>
posted on 2018-09-19 23:45  会飞的鲤鱼  阅读(89)  评论(0编辑  收藏  举报