表单静态页面

这是我在一个叫freeCodeCamp网站找到的表单小项目,这个项目整体来说并不难,只是一个静态的网页设计,对于新手练习来说应该是个不错的选择。

index.html

<div class="mybackground">
        <h1 id="title">freeCodeCamp Survey Form</h1>
        <p id="description"><i>Thank you for taking the time to help us improve the platform</i></p>

        <!-- 表单 -->
        <form id="survey-form" method="get" action="#">
            <!-- 名字 -->
            <div class="item">
                <label for="name" id="name-label">Name<br></label>
                <input type="text" id="name" class="commons" placeholder="Enter your name" required />
            </div>
            <!-- 邮箱 -->
            <div class="item">
                <label for="email" id="email-label">Email<br></label>
                <input type="email" id="email" class="commons" placeholder="Enter your email" required />
            </div>
            <!-- 年龄 -->
            <div class="item">
                <label for="number" id="number-label">Age(optional)<br></label>
                <input type="number" id="number" class="commons" max="150" min="0" placeholder="Age" required />
            </div>

            <!-- 下拉列表 -->
            <div class="item">
                <label for="number" id="number-label">Which option best describes your current role?<br></label>
                <select name="dropdown" id="dropdown" class="myselected">
                    <option value="Select current role" selected disabled>Select current role</option>
                    <option value="Student">Student</option>
                    <option va
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值