Skip to content

Commit

Permalink
Created email form
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrutek-indeed committed May 27, 2024
1 parent e05d33c commit a67af57
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
12 changes: 11 additions & 1 deletion html-forms/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
</head>

<body>
<main></main>
<main>
<form id="emailForm" onsubmit="return alert('Email sent');">
<label for="name">Name:</label>
<input id="name" type="text" name="name" />
<label for="email">Email:</label>
<input id="email" type="text" name="email" />
<label for="message">Your message:</label>
<textarea id="message" name="message" rows="10"></textarea>
<button type="submit">Submit</button>
</form>
</main>
</body>
</html>
21 changes: 20 additions & 1 deletion html-forms/style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
body {
padding: 10px;
width: 800px;
margin: auto;
}

input {
margin: 5px;
margin-bottom: 30px;
}

form {
display: flex;
flex-direction: column;
}

.button-wrapper {
display: flex;
flex-direction: row;
}

form button {
margin-top: 30px;
background-color: white;
border-radius: 5px;
width: 80px;
}

0 comments on commit a67af57

Please sign in to comment.