码迷,mamicode.com
首页 > 其他好文 > 详细

2nd Week

时间:2018-09-20 01:03:29      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:first   set   meta   name   单选   val   html   sleep   second   

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>

2nd Week

标签:first   set   meta   name   单选   val   html   sleep   second   

原文地址:https://www.cnblogs.com/flyingcarp/p/9678405.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!