Challenge - 5 Problems
Bootstrap Vue Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ rendering
intermediateWhat is the rendered output of this Bootstrap Vue button?
Consider this Vue component using
What will the button look like in the browser?
bootstrap-vue-next:<template> <b-button variant="success">Save</b-button> </template>
What will the button look like in the browser?
Bootsrap
<template>
<b-button variant="success">Save</b-button>
</template>Attempts:
2 left
💡 Hint
Bootstrap's 'success' variant applies a green color style to buttons.
✗ Incorrect
The component with variant 'success' renders a green Bootstrap-styled button labeled 'Save'.
❓ selector
intermediateWhich CSS class does
b-alert use for a warning alert?In
Which option correctly shows the CSS class applied for a warning alert?
bootstrap-vue-next, the b-alert component shows alerts with different styles.Which option correctly shows the CSS class applied for a warning alert?
Attempts:
2 left
💡 Hint
Bootstrap uses 'alert-' prefix followed by the alert type name.
✗ Incorrect
The 'warning' variant applies the 'alert-warning' CSS class to the alert component.
🧠 Conceptual
advancedWhat happens if you omit the
v-model on a b-form-input?Given this code snippet:
What is the effect of not using
<b-form-input type="text" />
What is the effect of not using
v-model on this input component?Bootsrap
<template> <b-form-input type="text" /> </template>
Attempts:
2 left
💡 Hint
v-model connects input value to Vue data for two-way binding.
✗ Incorrect
Without v-model, the input works visually but does not update or reflect any Vue data property.
❓ layout
advancedHow does
b-row and b-col create responsive layouts?In
bootstrap-vue-next, what is the main purpose of using b-row and b-col components together?Attempts:
2 left
💡 Hint
Bootstrap grid uses rows and columns to build flexible layouts.
✗ Incorrect
b-row and b-col implement Bootstrap's grid system, allowing columns to resize and stack on different screen sizes.
❓ accessibility
expertWhich attribute improves accessibility for a
b-modal component?When using
b-modal from bootstrap-vue-next, which attribute should you add to improve screen reader accessibility?Bootsrap
<template> <b-modal id="myModal" aria-labelledby="myModalLabel"> <template #modal-title> <h5 id="myModalLabel">Example Modal</h5> </template> Modal content here. </b-modal> </template>
Attempts:
2 left
💡 Hint
Screen readers use aria-labelledby to identify modal titles.
✗ Incorrect
Adding aria-labelledby pointing to the modal's title element helps screen readers announce the modal properly.
