HTML Attributes
- Which attribute of <input> element can be used both with <datalist> and <select> elements?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
List is the new attribute of <input> element and can be used together with <datalist> and <select> elements. Other attributes like pattern, multiple, max, min, step are new attribute used with the <input> element only.
- Which element does not support form attribute?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The new form attribute is for <input>, <select>, <textarea>, <button>, <output> and <fieldset>. One can place these elements anywhere on the page.
- Which element does not support autofocus attribute?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Autofocus is a new attribute as well as very interesting one. It can be specified on <input>, <textarea>, <button> and <select> elements. It is a way to focus a form control when the page is loaded.
- Which attribute does not lie inside <a> and <area> elements?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Preload is the attribute of the <video> element. Media, ping, hreflang, rel are the attribute used with <a> and <area> elements.
- Which is the new attribute of element that is used to change the appearance of checkbox?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The indeterminate is actually not an attribute, it is the property of checkbox which can be change via JavaScript, e.g. Var checkbox=document.getElementById(“any-checkbox”); Checkbox.indeterminate=true;