Skip to content

Instantly share code, notes, and snippets.

@Sarfarazsajjad
Created September 8, 2020 04:25
Show Gist options
  • Save Sarfarazsajjad/c5fa209b4264c5bf6d1e09a7bbe1c563 to your computer and use it in GitHub Desktop.
Save Sarfarazsajjad/c5fa209b4264c5bf6d1e09a7bbe1c563 to your computer and use it in GitHub Desktop.
Form Validation Assignment 2
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Form validation: Task 2</title>
<style>
body {
background-color: #fff;
color: #333;
font: 1em / 1.4 Helvetica Neue, Helvetica, Arial, sans-serif;
padding: 1em;
margin: 0;
}
* {
box-sizing: border-box;
}
</style>
</head>
<body>
<form>
<h2>Enter your support query</h2>
<ul>
<li>
<label for="uname">User name:</label>
<input type="text" name="uname" id="uname" required>
</li>
<li>
<label for="email">Email address:</label>
<input type="text" name="email" id="email" required>
</li>
<li>
<label for="phone">Phone number:</label>
<input type="text" name="phone" id="phone" required>
</li>
<li>
<label for="comment">Comment:</label>
<textarea name="comment" id="comment" required>
</textarea>
</li>
<li>
<button>Submit comment</button>
</li>
</ul>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment