How to create check boxes in HTML...plzzz....tell fast....50 pts!!
Answers
- HTML is a markup language usually used to create the basic structure of a web-page.
- Tags are a piece of code that tells the web-browser what to show and how to show and HTML is a tag-based language.
- Some common components of the form are:
- We use the < input > tag to create a form element.
- Hope it helps !!
Heya !!
What is HTML ??
The acronym for HTML is Hyper Text Markup Language. Initially, it was known by the name of GML (General Markup Language). In 1986, it was renamed to SGML (Standard Generalized Markup Language). In 1989, Sir Tim Berners-Lee and his team redesigned this language and named it Hyper Text Markup Language (HTML), as we know it today.
HTML is a markup language usually used to create the basic structure of a web-page. Using HTML with JavaScript (JS is a client-side programming language used to make HTML pages alive), we can even create Windows 10 Store Applications through Visual Studio.
What are Tags ??
Tags are a piece of code that tells the web-browser what to show and how to show. HTML is a tag-based language.
What are Forms ??
Now-a-days, all of us fill various forms on-line such as Placing an order, creating an account etc...Forms are a collection of various text-boxes, buttons, labels, captions, radio-buttons, check-boxes, drop-downs and so on...Forms are used to submit data from a user(client) and send it to the server for requesting data or submitting data to be stored in a database, for example, when we fill a form to create our account for example, on a question/answer site, the data related to our account gets stored on the server's database if the account was created successfully.
In HTML, forms can be created using the < form $gt; tag.
It is a container tag, which means it has a closing tag < /form > also...
Elements of a Form
As mentioned earlier, a form is a collection of various text-boxes, buttons, labels, captions, radio-buttons, check-boxes, drop-downs and so on...So, some common components of the form are:
- Text-box
- Button
- Check-box
- Creating Elements of a Form in HTML
We use the < input > tag to create a form element.
1. Creating a Text-Box : To create a text box, use,
< input type="text" value="" / >
2. Creating a Button : A button can be created in two ways...
< input type="button" value="This is a button" / >
< button > This is also a button < /button >
3. Creating Check Boxes : A check box control is a control used to select multiple items from a given list. To create a check box control, use this code...
< input type="checkbox" value="Option1" / > Text for option1.
< input type="checkbox" value="Option2" / > Text for option2.
< input type="checkbox" value="Option3" checked / > Text for option 3.
Attributes of the < input > tag...
- Type: Specifies the type of control.
- Value: The text visible on a button etc...
- Checked: (Only for type="checkbox") Tells weather the checkbox is checked by default or not...
Conclusion...
- HTML is a markup language usually used to create the basic structure of a web-page.
- Tags are a piece of code that tells the web-browser what to show and how to show and HTML is a tag-based language.
- Some common components of the form are:
- We use the < input > tag to create a form element.
Hope it helps !!
HTML is the standard markup language for creating Web pages.
• HTML stands for Hyper Text Markup Language.
• HTML describes the structure of Web pages using markup.
• HTML elements are the building blocks of HTML pages.
• HTML elements are represented by tags.
• HTML tags label pieces of content such as " heading ", " paragraph ", " table ", and so on.
• Browsers do not display the HTML tags, but use them to render the content of the page.
A checkbox is a form element that allows the user to select multiple options from a range of options.
Checkboxes are created with the HTML < input > tag. Checkboxes can be nested inside a < form > element or they can stand alone. They can also be associated with a form via the form attribute of the < input > tag.
A tag is a short description of an HTML object or link.
It's important to understand the difference between checkboxes and radio buttons. Radio buttons allow the user to select one option only. Checkboxes allow the user to select any number of options.
You can disable a checkbox by using the disabled attribute. You could use this in conjunction with a script to enable / disable the checkbox depending on whether certain criteria has been met.