HTML的代码比较繁琐,在此记下一些基本的东西,以后自己回来看看
1 <html> 2 <head> 3 <title>我的人生啊</title> 4 <style type="text/css"> 5 input{background-color:red;} 6 .highlight{font-size:xx-large;color:red;} 7 p.sign{font-size:34;color:green;} 8 #user 9 { 10 font-size:xx-large;color:blue; 11 } 12 </style> 13 </head> 14 <body bgcolor="#ccdd" > 15 <table align="center" border="1"> 16 <tr> 17 <td><label for name="username">用户名</label></td><td><input type="text" id="username" style="background-color:red"></td> 18 </tr> 19 <tr> 20 <td><label for name="password">密码</label></td><td><input type="password" id="password"></td> 21 </tr> 22 <tr> 23 <td><label for name="pass">确认密码</label></td><td><input type="password" id="pass"></td> 24 </tr> 25 <tr> 26 <td>职业</td> 27 <td> 28 <select> 29 <option>老师</option> 30 <option>学生</option> 31 <option>主任</option> 32 <option>校长</option> 33 </select> 34 </td> 35 </tr> 36 <tr> 37 <td colspan="2">性别 38 <input type="radio" id="boy" name="gender"/><label for="boy">男</label> 39 <input type="radio" id="girl" name="gender"/><label for="girl">女</label> 40 <input type="radio" id="secret" name="gender"/><label for="secret">保密</label> 41 </td> 42 </tr> 43 <tr> 44 <td>省份</td> 45 <td> 46 <select> 47 <option>山东</option> 48 <option>北京</option> 49 <option>河南</option> 50 <option>广州</option> 51 </select> 52 </td> 53 </tr> 54 </table> 55 <div align="center" style="cursor:url(F:\ICON\five.cur);color:blue"><u>点我呀</u></div> 56 <div align="center"><img src="H:\picture\tree.jpg" width="300"height="250" /> 57 <img src="H:\picture\liabrary.jpg" width="300"height="250" /></div> 58 <div class="highlight"><u>我是中国人</u></div> 59 <p id="user">你是我朋友</p> 60 <p class="sign">你好,欢迎来到中国!</p> 61 </body> 62 </html>
还有很多代码没有记录,接下来再添加
时间: 2024-10-13 02:29:49