Test Series - css

Test Number 50/59

Q: Which property is used to add space inside the text field?
A. padding
B. margin
C. number
D. password
Solution: 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: Which one can animate the width of search input when get focus?
A. focus
B. transition
C. outline
D. color
Solution: 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: Which of the following will insert generated content in the counter?
A. content
B. counter-reset
C. counter-increment
D. counter()
Solution: content inserts generated content, counter-reset creates or resets a counter, counter-increment increments the value of the counter, counter() function adds the value of a counter to an element.
Q: Which of the following is not the pseudo class for CSS Basic UI Level3?
A. :optional
B. :read-only
C. :valid
D. :checked
Solution: 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: Which is not a Mozilla CSS Extension?
A. ::-webkit-input-placeholder
B. :-moz-placeholder
C. –moz-ui-valid
D. :-moz-submit-invalid
Solution: 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: Which of the following is an extension to the common JavaScript framework?
A. Niceforms
B. Uni-forms
C. Formalize
D. jQuery UI
Solution: 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: Which of the following will provide date pickers?
A. jQuery UI
B. Niceforms
C. WebShim
D. Twitter Bootstrap
Solution: 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: Which of the following helps to deal with HTML5 support?
A. Twitter Bootstrap
B. WebShim
C. jQuery UI
D. Niceforms
Solution: 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: Which is not a WebKit value?
A. push-button
B. menulist
C. radio
D. tooltip
Solution: 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: Which is not a Mozilla value?
A. caret
B. resizer
C. listbox
D. scrollbar
Solution: 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.

You Have Score    /10