This set of HTML Multiple Choice Questions & Answers (MCQs) focuses on “Responsive Overview – 8”.
1. How many classes does bootstrap grid system has?
Explanation: Bootstrap grid system has four classes. Xs, sm, md, lg. as is for phones having screens less than 786px wide, sm is for tablets. Screens equal to or greater than 768px, md is for small laptops, screen equal to or greater than 992px wide, lg is for laptops and desktops, Screens equal to or greater than 1200px wide.
2. What is bootstrap’s global default font-size?
Explanation: Bootstrap’s global default font-size is 14px, with line-height of 1.428. This is applied to element and all paragraphs. In addition all <p> elements have bottom margins.
3. Progress bars are not supported in ______________
a) Internet Explorer 10
b) Internet Explorer 9
Explanation: Progress bars are not supported in Internet Explorer 9 and earlier versions, because they use CSS3 transitions and animations to achieve some of the effects. For improving accessibility for people using screen readers, we should include aria-* attributes.
4. Which of the following clears bottom-margin of each panel?
Explanation: .panel-group class clears bottom-margin of each panel. It also group many panels together, we can wrap <div> with class .panel-group around them.
5. For inserting plain text we use __________
Explanation: If we need to insert plain text next to a form label within horizontal form we can use .form-control-static class on <p> element. The .input-group class is a container to enhance input by adding an icon, text or button in front or behind it.
6. Which attribute is used to input to prevent user input?
Explanation: We can add readonly attribute to an input to prevent user input. .sr-only class is applied on non-visible labels, disabled attribute is added to disabled an input field.
7. What is the range of dimension for small devices?
a) 450px to 700px
b) 768px to 991px
c) 992px to 1199px
d) 120px to 500px
Explanation: Small devices are defined as a screen width from 768px to 991px. For small devices we use the class .col-sm-*, for medium devices the screen width from 992px to 1199px.
8. Which will change the order of a grid columns?
Explanation: We can change order of the grid columns with .col-md-push-* and .col-md-pull-* classes, we can move columns to right using .col-md-offset class.
Sanfoundry Global Education & Learning Series – HTML.
To practice all areas of HTML, here is complete set of 1000+ Multiple Choice Questions and Answers.