HTML Forms
- Which of the following is not used with password attribute?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
password is the attribute that creates a text box which is similar to the single line text input, but the characters are blocked out. They are hidden due to the privacy of the user. The name attribute with a password set the name of the password input, size and maxlength attributes define the size and maximum length of the text box which is to be used for the password.
- Which element is used to create multi-line text input?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
For creating multi-line text input we use <textarea> element. This is not empty element i.e. it requires both opening tag and closing tag. The cols attribute defines a width of the text area. The row attributes the number of rows that the textarea can require.
- Which attribute is not used for the radio type?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
When we want to pick one option from the given many options we use radio type. Name attribute sent the value of the option selected to the server. Value attribute indicates the value that has been sent to the server for the selected option. The checked attribute indicates that which value should be selected on the loading of the page.