CSS Questions & Answers – Appearance of Form Elements

CSS Multiple Choice Questions & Answers (MCQs) focuses on “Appearance of Form Elements”.

Q 1. Which property is used to add space inside the text field?
A. number
B. margin
C. padding
D. password

Show Answer Answer:-C. padding
Explanation Padding property is used to add space inside the text field, when we have many inputs after each other we can also add some margin to add more space outside, input[type=text] {padding:13px 30px; margin: 8px 0;}

Q 2. Which one can animate the width of search input when get focus?
A. focus
B. colour
C. outline
D. transition

Show Answer Answer:-D. transition
Explanation For animating the width of search input when it gets focus we used CSS transition property, input[type=text] {-webkit-transition: width 09s ease-in-out; transition: width 0.9s ease-in-out; } input[type=text]:focus {width:100%;}

Q 3. Which of the following will insert generated content in the counter?
A. counter-reset
B. content
C. counter-increment
D. counter()

Show Answer Answer:-B. content

Q 4. Which of the following is not the pseudo class for CSS Basic UI Level3?
A. :optional
B. :read-only
C. :valid
D. :checked

Show Answer Answer:-D. :checked
Explanation CSS Basic UI Level 3 has many pseudo-classes like :widget, :invalid, :valid, :in-range, :required, :read-write, :read-only, :optional, :out-of-range. CSS Selector Level 3 has the classes :disabled, :enabled, :indeterminate, :checked.

Q 5. Which is not a Mozilla CSS Extension?
A. :-moz-submit-invalid
B. :-moz-placeholder
C. –moz-ui-valid
D. ::-webkit-input-placeholder

Show Answer Answer:-D. ::-webkit-input-placeholder
Explanation Mozilla CSS Extensions include :-moz-placeholder, :-moz-ui-invalid, :moz-ui-valid, :moz-submit-invalid. ::-webkit-input-placeholder is Webkit CSS Extension, :-ms-input-placeholder is Microsoft CSS Extension.

Q 6. Which of the following is an extension to the common JavaScript framework?
A. Niceforms
B. Formalize
C. Uni-forms
D. jQuery UI

Show Answer Answer:-B. Formalize
Explanation Formalize is an extension to common JavaScript frameworks like JQuery, Dojo, YUI etc., it helps to normalize and customize the forms. Uni-form standardizes form markup, styling it with CSS, it also offers a few additional features when used with jQuery.

Q 7. Which of the following will provide date pickers?
A. jQuery UI
B. Niceforms
C. WebShim
D. Twitter Bootstrap

Show Answer Answer:-A. jQuery UI
Explanation jQuery UI offers some very interesting and advanced as well as customizable widgets like date pickers with special attention given to accessibility. Niceforms is a standalone JavaScript method that provides complete customization of web forms.

Q 8. Which of the following helps to deal with HTML5 support?
A. WebShim
B. Twitter Bootstrap
C. jQuery UI
D. Niceforms

Show Answer Answer:-A. WebShim
Explanation WebShim is a big tool that can help with browser HTML5 support, web form part can be very helpful. If you want to normalize forms Twitter Bootstrap can greatly help.

Q 9. Which is not a WebKit value?
A. tooltip
B. menulist
C. radio
D. push-button

Show Answer Answer:-A. tooltip
Explanation WebKit includes various values like checkbox, button, button-level, menulist, scrollbarbutton-up, listitem, scrollbarbutton-left, caret, textfield, textarea, searchfield, searchfield-decoration, slider-vertical, slider-horizontal, scrollbargripper-horizontal etc.

Q 10. Which is not a Mozilla value?
A. resizer
B. caret
C. list box
D. scrollbar

Show Answer Answer:-B. caret
Explanation Mozilla includes many values like menulist, radio, scrollbar, dialog, listbox, scrollbarbutton-down, scrollbar, resizer, checkbox, scrollbarbutton-up, separator, toolbar, toolbox, statusbar, separator, toolbarbutton, window, treetwisty, treeview etc.

Q 11. Which is not the property of CSS box model?
A. width
B. height
C. margin
D. color

Show Answer Answer:-D. color
Explanation CSS box model include height, width, padding, margin and border. All text-fields have complete support for every property related to CSS box model. Browser relies on system default styles when displaying these widgets.

Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

You cannot copy content of this page