Sure, here's a small HTML code snippet with CSS to create a new contact page test:
HTML:
html
Contact Us
CSS (styles.css):
css
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
header {
background-color: #007bff;
color: #fff;
text-align: center;
padding: 1em 0;
}
form {
max-width: 400px;
margin: 20px auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
label, input, textarea {
display: block;
margin-bottom: 10px;
}
input, textarea {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
background-color: #007bff;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
}
JS (script.js):
javascript
// Add any interactive JavaScript here if needed
This code creates a simple contact page with a form for name, email, and message, and includes basic CSS styling for a clean and user-friendly interface.