HTML Forms & Semantics|
Your First Form

Introduction to Forms

Python

Your First Form

Your First Form

Forms collect user input and send it to a server.

Basic Form Structure

Key Attributes

- action - Where to send the data

  • method - How to send it (GET or POST)
  • for and id - Link labels to inputs

    Your Task

    Create a simple contact form with:

  • A form with action="/contact" and method="POST"
  • A label and text input for "name"
  • A label and email input for "email"
  • A submit button
  • Code Editor
    Loading HTML engine...
    Loading...
    Loading Python engine...

    Run your code to see output