Html miscellaneous
- Form validation traditionally was performed by ___________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Form validation is checking if the form has been filled correctly. Traditionally it has been performed by JavaScript but now HTML5 is introducing validation. Hence browser does all the work of validation. Validation reduces the amount of work for the server.
- For creating single line text box for searching queries, we use the type ___________.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
For creating a single line text box for searching queries we use the type=”search”. In old browsers, it will be simply a single line text box. Safari adds across that clear search box when we enter new data to search. It also rounds the corners on search input fields by default.
- In the processing of information, the server does not use the language _____.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
When we enter a new value through form it goes to the server for processing information and this information is processed using languages C#, PHP, JAVA or VB.net. The database can also store the information.
- Which of the following is not the form type for adding text?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
There are many types of form controls. Adding text, Submitting forms, Making choices and Uploading files are some of them. For an adding text, we can use Text input, Text area, and Password input. For making choices there are checkboxes, radio buttons, and drop-down boxes.
- For clearing all the settings which function should be called?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
If we want to delete all the setting we can call localStorage.clear() method, localStorage.remove(key) only removes the key of the value that we have given. Same can be applied with sessionStorage also the syntax will be sessionStorage.clear().