Skip to content
Permalink
aa5fe32866
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
33 lines (33 sloc) 1.02 KB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Web Form</title>
</head>
<body>
<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>
<style>
form {
display: flex;
flex-direction: column;
align-items: flex-start;
}
textarea {
margin: 0;
}
</style>
<script src="js/form.js"></script>
</body>
</html>