In Bootstrap, the '___' attribute is used to display a placeholder inside input fields.
- placeholder
- text-holder
- input-placeholder
- holder
The placeholder attribute in Bootstrap is used to display a placeholder text inside input fields. It provides a brief hint to the user about what type of information is expected in the field. The other options (text-holder, input-placeholder, holder) are not valid HTML attributes used for this purpose.
What is the maximum number of columns available in a Bootstrap grid system?
- 12
- 24
- 6
- 9
The maximum number of columns available in a Bootstrap grid system is 12. Bootstrap uses a 12-column grid layout system that provides flexibility in designing responsive web pages.
How does the integration of Bootstrap with a JavaScript framework affect SPA (Single Page Application) behavior?
- Impact on DOM manipulation and rendering
- Enhances data binding and state management
- Streamlines server-side logic
- Improves SEO performance
The integration of Bootstrap with a JavaScript framework affects SPA behavior by impacting DOM manipulation and rendering. This is because...
To adjust the default grid system in Bootstrap, modify the ___ variables in Sass.
- layout
- grid
- container
- grid-system
To customize the default grid system in Bootstrap, you need to modify the "grid" variables in Sass. These variables control the grid layout, such as column widths, gutter widths, and breakpoints.
Bootstrap's '___' class can be dynamically updated with AJAX to display loading states.
- loader
- loading
- spin
- active
Bootstrap's 'loading' class is designed to be dynamically updated with AJAX to indicate loading states. By applying this class, you can visually signal to users that content is being loaded asynchronously.
What role does browser caching play in website performance optimization?
- Stores website assets locally
- Deletes website assets
- Increases server load
- Slows down website rendering
Browser caching involves storing website assets locally on the user's device. This reduces the need to re-download assets on subsequent visits, leading to faster load times and improved performance.
Bootstrap's grid system uses ___ breakpoints for different devices in mobile-first design.
- 4
- 6
- 8
- 12
Bootstrap's grid system is based on 12 columns, and it uses different breakpoints for various devices such as xs (extra small), sm (small), md (medium), and lg (large).
Q1. How can you create a masonry-like grid layout using Bootstrap cards?
- Use the 'card-columns' class
- Utilize the 'grid-system' class
- Apply 'card-masonry' class
- Implement 'card-layout' class
In Bootstrap, the 'card-columns' class is used to create a masonry-like grid layout. It automatically adjusts the height of the cards, creating a visually appealing grid.
How do you use Bootstrap to dynamically show or hide content based on screen size?
- .visible-md, .hidden-lg
- .hidden-md, .visible-lg
- .hidden-sm, .visible-md
- .visible-sm, .hidden-lg
Bootstrap provides classes like .visible-md and .hidden-lg to control visibility based on screen size. These classes can be added to HTML elements to show or hide content on medium and large screens.
The ScrollSpy feature in Bootstrap requires the ___ method to be called for initialization.
- spy()
- initialize()
- activate()
- scrollSpy()
The correct method for initializing ScrollSpy in Bootstrap is scrollSpy(). It activates the ScrollSpy behavior on the specified element.