HTML: Frames and Forms
An Overview of HTML Frames and
Forms
Introduction to Frames
• • Frames allow dividing the browser window
into multiple sections.
• • Each section can load a different HTML page.
• • Used with the <frameset> and <frame> tags.
Frame Attributes
• • cols: Defines vertical frames.
• • rows: Defines horizontal frames.
• • noresize: Prevents resizing.
• • scrolling: Controls scrollbar visibility.
• • name: Assigns a name to a frame.
Introduction to Forms
• • Forms are used to collect user input.
• • The <form> tag wraps form elements.
• • Input fields allow text, passwords, radio
buttons, checkboxes, etc.
Form Elements
• • <input>: Text fields, password, checkboxes,
radio buttons.
• • <textarea>: Multi-line text input.
• • <select>: Dropdown list.
• • <button>: Submit, reset, or custom buttons.
Form Submission
• • Forms use action and method attributes.
• • GET: Appends data to the URL.
• • POST: Sends data securely in the request
body.
• • Example: <form action='submit.php'
method='POST'>