多种实例解析HTML表单form的使用方法

2020-04-16 08:39:18易采站长站整理

                <input type="checkbox" name="sports" id="run"><br>  
            <label for="climb">登山</label>  
                <input type="checkbox" name="sports" id="climb"><br>  
            <label for="basketball">篮球</label>  
                <input type="checkbox" name="sports" id="basketball"><br>  
        </form>  
    </body>  
</html>  
  

浏览器效果: