当前位置:主页 > 查看内容

HTML form应用包括复选框、单选按钮的使用

发布时间:2021-05-13 00:00| 位朋友查看

简介:包括复选框,单选按钮的使用 复制代码 代码如下: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" html xmlns="http://www.w3.org/1999/xhtml" head meta http-equiv="Content-Ty……
包括复选框,单选按钮的使用

复制代码
代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>登录界面</title>
</head>
<body>
<h1>
<strong>登录界面</strong>
</h1>
<form name="f1" id="f1">
<table border="0" width="457" height="280" cellspacing="1" cellpadding="1">
<tbody><tr>
<td width="44">Login:</td>
<td width="406"><input type="text" name="login" id="login" size=""></input></td>
</tr>
<tr><td colspan="3" align="left">专业:

<input type="radio" name="type" value="computer" checked="">计算机应用</input>
<input type="radio" name="type" value="software">软件工程</input>
<input type="radio" name="type" value="auto">自动化</input> </td>
</tr>
<tr><td colspan="4" align="left">课程:

<input type="checkbox" value="">计算机网络</input>
<input type="checkbox" value="">数据库原理</input>
<input type="checkbox" value="">WEB程序设计</input>
<input type="checkbox" value="">Java编程</input></td>
</tr>
</tbody></table>
</form>
</body>
</html>

实际效果:

登录界面

原文链接:https://m.jb51.net/web/168285.html
本站部分内容转载于网络,版权归原作者所有,转载之目的在于传播更多优秀技术内容,如有侵权请联系QQ/微信:153890879删除,谢谢!
上一篇:HTML列表标签dl、ul、ol 的使用示例 下一篇:没有了

推荐图文


随机推荐