PPT1 - CB - VI - CS - More On HTML
PPT1 - CB - VI - CS - More On HTML
HTML code:
HTML code:
HTML code:
Hobbies: <br>
<input type=“checkbox" name=" C1 "> Drawing
<input type=“checkbox" name=" C2 "> Reading
Radio Button
The <input> tag with the type=“radio” attribute creates a radio
button that users can select from a group of options.
In a group of radio buttons, the name must be the same for each
radio button, else user will be able to select all options.
HTML code:
Gender: <br>
<input type=“radio" name=" G1 "> Male
<input type=“radio" name=" G1 "> Female
Button
There are two special types of buttons used in a form – the Submit
button and the Reset button.
The Submit button is used to send the form data to the website.
<input> tag with the type=”submit” attribute creates the
Submit button.
The Reset button is used to clear all inputs given by the user.
The <input> tag with the type=”reset” attribute creates the
Reset button.
Select tag
The <select> tag creates an input element with a drop-down list of
options that users can select from. The items in the drop-down list
can be defined by the <option> tag.