<!DOCTYPE html>
<html>
<head>
	<title>招生网站</title>
	<style>
		body {
			background-color: #f5f5f5;
			font-family: Arial, sans-serif;
		}
		h1 {
			color: #333;
			text-align: center;
			margin-top: 50px;
		}
		form {
			background-color: #fff;
			border-radius: 5px;
			box-shadow: 0px 0px 10px #888;
			max-width: 500px;
			margin: 0 auto;
			padding: 20px;
			margin-top: 50px;
		}
		label {
			display: block;
			font-weight: bold;
			margin-bottom: 10px;
		}
		input[type="text"], input[type="email"], select {
			display: block;
			width: 100%;
			padding: 10px;
			border: 1px solid #ccc;
			border-radius: 3px;
			margin-bottom: 20px;
			font-size: 16px;
		}
		input[type="submit"] {
			background-color: #333;
			color: #fff;
			border: none;
			padding: 10px;
			border-radius: 3px;
			font-size: 16px;
			cursor: pointer;
		}
		input[type="submit"]:hover {
			background-color: #555;
		}
	</style>
</head>
<body>
	<h1>欢迎来到我们的招生网站</h1>
	<form action="" method="post">
		<label for="name">姓名:</label>
		<input type="text" id="name" name="name" required>
<pre><code>	&lt;label for=&quot;email&quot;&gt;邮箱:&lt;/label&gt;
	&lt;input type=&quot;email&quot; id=&quot;email&quot; name=&quot;email&quot; required&gt;

	&lt;label for=&quot;gender&quot;&gt;性别:&lt;/label&gt;
	&lt;select id=&quot;gender&quot; name=&quot;gender&quot;&gt;
		&lt;option value=&quot;male&quot;&gt;男&lt;/option&gt;
		&lt;option value=&quot;female&quot;&gt;女&lt;/option&gt;
	&lt;/select&gt;

	&lt;label for=&quot;major&quot;&gt;意向专业:&lt;/label&gt;
	&lt;input type=&quot;text&quot; id=&quot;major&quot; name=&quot;major&quot; required&gt;

	&lt;input type=&quot;submit&quot; value=&quot;提交申请&quot;&gt;
&lt;/form&gt;
</code></pre>
</body>
</html
帮我写一个网站招生网站html简单一点加一点css

原文地址: https://www.cveoy.top/t/topic/ehYS 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录