注册表格

<html>
<head>
<title>注册表格</title>
<style>
h1{
font-family:隶书;
color:yellow;
font-size:50px;
}
</style>
</head>
<body bgcolor="pink">
<table align="center" border="1">
<tr align="center">
<td colspan="2"><h1>注册</h1></td>


</tr>
<tr>
<td>用户名:</td>
<td>
<input maxlength="10" placeholder="请输入用户..."/>
</td>
</tr>
<tr>
<td>密 码:</td>
<td>
<input type="passWord" maxlength="10" placeholder="请输入密码..."/>
</td>
</tr>
<tr>
<td>性 别:</td>
<td>
男:<input type="radio" name="aa"/>
女:<input type="radio" name="aa"/>
保密:<input type="radio" name="aa"/>
</td>
</tr>
<tr>
<td>爱 好:</td>
<td>
游泳<input type="checkbox"/>
上网<input type="checkbox"/>
吃饭<input type="checkbox"/>
睡觉<input type="checkbox"/>
</td>
</tr>
<tr>
<td>户籍:</td>
<td>
<select>
<option>重庆</option>
<option>四川</option>
<option>天津</option>
<option>上海</option>
<option>北京</option>
</select>
</td>
</tr>
<tr>
<td>个人介绍:</td>
<td>
<textarea cols="80" rows="10" placeholder="个人介绍..."></textarea>
</td>
</tr>
<tr>
<td>网站协议:</td>
<td>
<textarea cols="80" rows="10" placeholder="协议..."></textarea>
</td>
</tr>
<tr>
<td>请选择图像:</td>
<td>
<input type="file"/>
</td>
</tr>
<tr>
<td>验证码:</td>
<td>
<input maxlength="5"/>45879
</td>
</tr>
<tr align="center">
<td colspan="2">
<input type="submit" value="提交"/>
<input type="reset"/>
</td>

</tr>


</table>
</body>
</html>
当然可以,下面是一个简单的注册表的HTML和CSS代码: HTML代码: ``` <form> <label for="username">用户名:</label> <input type="text" id="username" name="username" required><br> <label for="password">密码:</label> <input type="password" id="password" name="password" required><br> <label for="email">邮箱:</label> <input type="email" id="email" name="email" required><br> <input type="submit" value="提交"> </form> ``` CSS代码: ``` form { display: flex; flex-direction: column; align-items: center; margin-top: 50px; } label { margin-right: 10px; margin-bottom: 10px; } input[type="text"], input[type="password"], input[type="email"] { padding: 10px; border: none; border-radius: 5px; margin-bottom: 10px; width: 300px; } input[type="submit"] { padding: 10px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer; } input[type="submit"]:hover { background-color: #3e8e41; } ``` 上面的HTML代码定义了一个包含用户名、密码和邮箱的注册表单,其中每个输入框都必须填写。CSS代码定义了表单的样式,包括使用 display:flex 和 flex-direction 属性将表单中的元素纵向排列,使用 align-items 属性将元素垂直居中,以及为输入框和提交按钮添加样式。 其中使用到的属性包括: - display - flex - flex-direction - align-items - margin - padding - border - border-radius - width - background-color - color - cursor 以上是一个简单的注册表的HTML和CSS代码以及使用的属性解释。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值