Skip to content

Commit

Permalink
Forms - Input Elements and Submit
Browse files Browse the repository at this point in the history
  • Loading branch information
pktcodes committed Oct 25, 2022
1 parent da72cf8 commit abef652
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,30 @@

<body>
<!--
Table Element
tr - row
td -column
th - table heading, text with some styling -->
form - html element
action - data needs to be collected at server after submitting
method - what type of submit
-->

<table>
<tr>
<th>Number</th>
<th>Name</th>
</tr>
<tr>
<td>1</td>
<td>Praveen</td>
</tr>
<tr>
<td>2</td>
<td>John</td>
</tr>
<tr>
<td>3</td>
<td>Peter</td>
</tr>
</table>
<form action="" method="">
<!-- Text Input -->
<label for="firstname">First Name</label>
<input type="text" name="firstname" id="firstname" />
<br />
<br />
<!-- Password Input -->
<input type="password" name="password" placeholder="Enter password" />
<br />
<br />

<!-- Email Input -->
<input type="email" name="email" id="" value="praveen@gmail.com" />

<!-- Submit Input -->
<!-- <input type="submit" value="Submit here" /> -->

<!-- Button Submit -->
<button type="submit">Submit here</button>
</form>
</body>
</html>

0 comments on commit abef652

Please sign in to comment.