Enterprise Verified
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Forms Intro 6 min read • Chapter 26 of 32

HTML Forms

An HTML form is used to collect user input. The user input is most often sent to a server for processing.

The HTML <form> element is a container for different types of input elements, such as: text fields, checkboxes, radio buttons, submit buttons, etc.

Example

<!DOCTYPE html>
<html>
<body style="font-family:sans-serif;padding:20px;">
    <form action="#" method="GET">
        <label>Employee Name:</label><br />
        <input type="text" name="name" value="Amit Patel" style="padding:6px;margin:4px 0 10px;" /><br />
        <input type="submit" value="Save Profile" style="background:#04aa6d;color:white;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;" />
    </form>
</body>
</html>
Try it Yourself >> Opens live sandboxed code editor
Advertisement
Google AdSense Slot (IN-ARTICLE)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php

Community Q&A & Discussion

No questions yet. Be the first to start the discussion!
Enterprise Operations Suite

Streamline Employee Payroll & Attendance Operations

Eliminate manual spreadsheet errors. Integrate automated attendance tracking, EPF/ESI statutory calculations, and custom GST invoices.

Copied!

AI Learning Assistant

Ready to explain & guide

Hello! I am your MBS Digital AI Tutor. Ask me to explain concepts, review code, or suggest debugging steps.

Quick Starters:
AI Tutor is thinking...