Build a Chat Room Front Page with HTML
<!DOCTYPE html>
<html>
<head>
<title>Chat Room Front Page</title>
<style>
body{
background-color: #f2f2f2;
}
h1{
text-align: center;
font-size: 40px;
color: #333;
margin: 50px 0;
}
form{
text-align: center;
margin: 0 auto;
width: 60%;
background-color: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px #ccc;
}
input[type='text'], input[type='password'], input[type='email'], textarea{
display: block;
margin: 20px 0;
padding: 10px;
width: 80%;
border-radius: 5px;
border: none;
box-shadow: 0px 0px 5px #ccc;
}
input[type='submit']{
background-color: #333;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 20px;
transition: all 0.3s ease-in-out;
}
input[type='submit']:hover{
background-color: #fff;
color: #333;
box-shadow: 0px 0px 5px #333;
}
</style>
</head>
<body>
<h1>Chat Room</h1>
<form action='#' method='POST'>
<label for='name'>Name:</label>
<input type='text' id='name' name='name' required>
<label for='email'>Email:</label>
<input type='email' id='email' name='email' required>
<label for='message'>Message:</label>
<textarea id='message' name='message' required></textarea>
<input type='submit' value='Send'>
</form>
</body>
</html>
原文地址: https://www.cveoy.top/t/topic/ozlY 著作权归作者所有。请勿转载和采集!