【HTML】11-html练习

 

 1   <table border="1" width="400" height="400">
 2     <!-- 表格整体的大标题 -->
 3     <caption><h3>优秀学生信息表格</h3></caption>
 4     <!-- 表格的头部 -->
 5     <thead>
 6       <tr>
 7         <th>年级</th>
 8         <th>姓名</th>
 9         <th>学号</th>
10         <th>班级</th>
11       </tr>
12     </thead>
13     <!-- 表格的主体 -->
14     <tbody>
15       <tr>
16         <!-- 保留 -->
17         <td rowspan="2">高三</td>
18         <td>张三</td>
19         <td>110</td>
20         <td>三年二班</td>
21       </tr>
22       <tr>
23         <!-- 删除 -->
24         <!-- <td>高三</td> -->
25         <td>赵四</td>
26         <td>120</td>
27         <td>三年三班</td>
28       </tr>
29     </tbody>
30     <!-- 表格的底部 -->
31     <tfoot>
32       <tr>
33         <td>评语</td>
34         <!-- 保留 -->
35         <td colspan="3">你们都很优秀</td>
36         <!-- 统统删除掉 -->
37         <!-- <td>你们都很优秀</td> -->
38         <!-- <td>你们都很优秀</td> -->
39       </tr>
40     </tfoot>
41   </table>

 

 1  <h1>青春不常在,抓紧谈恋爱</h1>
 2   <hr>
 3 
 4   <form>
 5     昵称:
 6     <input type="text" placeholder="请输入昵称">
 7     <br><br>
 8 
 9     性别:
10     <label>
11       <input type="radio" name="sex" checked>12     </label>
13     <label>
14       <input type="radio" name="sex">15     </label>
16     <br><br>
17 
18     所在城市:
19     <select>
20       <option>上海</option>
21       <option>北京</option>
22       <option>广州</option>
23       <option>深圳</option>
24     </select>
25     <br><br>
26 
27     婚姻状况:
28     <input type="radio" name="marry" checked>未婚
29     <input type="radio" name="marry">已婚
30     <input type="radio" name="marry">保密
31     <br><br>
32 
33     喜欢的类型:
34     <input type="checkbox" checked>可爱
35     <input type="checkbox" checked>性感
36     <input type="checkbox">御姐
37     <input type="checkbox">萝莉
38     <input type="checkbox">小鲜肉
39     <input type="checkbox">大叔
40     <br><br>
41 
42     个人介绍:<br><br>
43     <textarea name="" id="" cols="60" rows="10"></textarea>
44 
45     <h3>我承诺</h3>
46     <ul>
47       <li>年满18岁、单身</li>
48       <li>抱着严肃的态度</li>
49       <li>真诚寻找另一半</li>
50     </ul>
51 
52     <input type="checkbox">我同意所有条款
53     <br><br>
54 
55     <input type="submit" value="免费注册">
56     <input type="reset">
57   </form>

 

posted @ 2021-12-18 21:23  为你编程  阅读(163)  评论(0)    收藏  举报