Skip to content
Go to file
Cannot retrieve contributors at this time
33 lines (33 sloc) 1.02 KB
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Form</title>
<h1>Contact Me!</h1>
<form id="myform">
<input type="text" name="name" id="name" placeholder="Name">
<span id="name-error"></span>
<input type="email" name="email" id="email" placeholder="Email">
<span id="email-error"></span>
<input type="text" name="subject" id="subject" placeholder="Subject">
<span id="subject-error"></span>
<textarea name="message" id="message" cols="30" rows="10" form="myform" placeholder="Message"></textarea>
<span id="message-error"></span>
<button type="submit">Submit</button>
form {
display: flex;
flex-direction: column;
align-items: flex-start;
textarea {
margin: 0;
<script src="js/form.js"></script>
You can’t perform that action at this time.