Week 1 Day 4
New Terms
- Form
- Input
- Label
- Button
- Text Area
- Required Element
- Anchor
Form < form >
Think of a "form" as a digital clipboard. Itâs where you gather user inputâlike names, emails, or feedbackâand send it somewhere, usually to a server.
Input < input >
The "input" tag can be a text box, a checkbox, a radio button, or even a file uploader. Itâs how users actually provide their info, whether itâs a search query or a password.
Label < label >
A "label" does more than just sit next to an input field, itâs clickable. When properly linked to an input, clicking the label focuses on the field, making forms more user-friendly.
Button < button >
The "button" is the final step in most forms. Itâs what users click to submit their information or trigger an action. Whether it says âSubmit,â âSign Up,â or âBuy Now,â itâs the gateway to getting things done.
Text Area < textarea >
Unlike the basic input field, a "text area" is built for longer text. It expands as needed and is perfect for comments, feedback, or messages.
Required Element
It ensures users donât leave important fields empty, helping to collect complete and accurate data.
Anchor < a >
The "a" tag, better known as a link, is one of the most used elements on the web. Whether it takes you to another page, opens an email client, or jumps to a section on the same page, it keeps users navigating smoothly.