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

包括复选框,单选按钮的使用

复制代码代码如下:
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”https://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″ cellspacing=”1″ cellpadding=”1″>
<tbody><tr>
<td >Login:</td>
<td ><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>

实际效果:

登录界面
HTML form应用包括复选框、单选按钮的使用

—-想了解HTML form应用包括复选框、单选按钮的使用分享 的全部内容且更多的html语言教程关注<计算机技术网(www.ctvol.com)!!>

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/htmltutorial/490520.html

(0)
上一篇 2020年11月12日
下一篇 2020年11月12日

精彩推荐