<form
method="POST"
action="https://api.formjam.io/form/94e135eb-a8fa-4c7c-98e9-62dfb1ba7709"
>
<label for="firstName">First name:</label><br />
<input type="text" id="firstName" name="firstName" value="John" required><br />
<br />
<label for="lastName">Last name:</label><br />
<input type="text" id="lastName" name="lastName" value="Doe" required><br>
<br />
<label for="email">Email:</label><br />
<input type="email" id="email" name="email" value="john.doe@example.com" required><br>
<br />
<label for="message">Message:</label><br />
<textarea id="message" name="message" required>Hello!</textarea><br>
<br />
<button type="submit">Submit</button>
</form>
xxxxxxxxxx
body {
display: flex;
justify-content: center;
overflow-x: hidden;
padding-top: 20px;
}
form {
width: 360px;
}
input, textarea, button {
width: 100%;
margin: 0;
padding: 0;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.