HTML Forms
Creating Text Inputs and Buttons
- Group from controls
What input are part of the form?
- Send the data somewhere
Where does the form data go when submitted.
Text inputs
- The input element is extremely versatile set type=”text” to create a standard text input. Like <a>, it has no closing tag.
Button
The Form Elements
Where the form data is sent
- What HTTP “verb” is used. “METHOD”
Name and Placeholder Attributes
Name
The name that the data will be sent to the server under
It is code to access direct to search items.
Placeholder
- This is text which written in the form. To use this, we write
Properly Labeling form Controls
Labels
Match a label element to a form control using for attribute. It must match the id attribute on an input
Checkboxes, Text areas
Text areas
- Use <textarea> tags to create a multi-line text input
Checkboxes
- Use type= “checkbox” to create a checkbox element.
Select and Radio Button Grouping
Populate a <select> element with <option> element.
Radio button
Radio buttons are usually grouped together. Only ONE option can be selected.
Name = “contact” shows connection in two or three option either select one from all of them.
Spans
- Spans are generic inline elements. They have no special meaning but can be styled later using CSS.
My name is Ahmad.
Divs
- Divs are generic containers that have no inherent meaning. They are used to group content together for styling.
This is paragragh under div element.
Facebook
Twitter
LinkedIn
Pinterest
WhatsApp
Table of Contents
Interesting Posts
Ghulam Ahmad is an Excellent Writer, His magical words added value in growth of our life. Highly Recommended
- Irfan Ahmad Tweet
Post Views: 445










9 Responses
Great information shared.. really enjoyed reading this post thank you author for sharing this post .. appreciated
I really like reading through a post that can make men and women think. Also, thank you for allowing me to comment!
I do not even understand how I ended up here, but I assumed this publish used to be great