HTML Forms 📝


Forms are one of the most important parts of web development. Whenever you log in, sign up, or submit details on a website, you are using an HTML form.
Let's break it down in simple terms.


1️⃣ Label & Input 🏷️

input-label
<label>Name :</label>
    <input type="text">

2️⃣ Connecting Label and Input (for - id) 🔗

connect-label-input
<label for="email">Email :</label>
    <input type="email" id="email">

3️⃣ Name–Value Pair (What Goes to the Backend) 📨

name-value-pair
<label for="male">Male</label>
    <input type="radio" id="male" name="gender" value="male">
    <label for="female">Female</label>
    <input type="radio" id="female" name="gender" value="female">
    <label for="other">Other</label>
    <input type="radio" id="other" name="gender" value="other">

✅ In short: