Complete the code to hide the element on all screen sizes.
<div class="[1]">This text is hidden on all devices.</div>
d-none with other display classes.The d-none class hides the element on all screen sizes.
Complete the code to show the element only on medium and larger screens.
<div class="d-none [1]">Visible on medium and larger screens.</div>
d-sm-block which shows from small screens, not medium.d-lg-block which hides on medium.The d-md-block class shows the element as block starting from medium screens and up.
Fix the error in the code to hide the element only on small screens.
<div class="[1]">Hidden only on small screens.</div>
d-none-sm.The correct class to hide on small screens is d-sm-none. The class d-none-sm is invalid.
Fill both blanks to make the element visible only on large screens and hidden on smaller ones.
<div class="[1] [2]">Visible only on large screens.</div>
d-md-block which shows on medium screens too.Use d-none to hide by default, and d-lg-block to show on large screens.
Fill all three blanks to make the element hidden on extra small and small screens, visible as inline on medium, and hidden again on extra large screens.
<div class="[1] [2] [3]">Complex visibility control.</div>
d-sm-block which shows on small screens, not hiding.Use d-none to hide by default (extra small and small), d-md-inline to show inline on medium, and d-xl-none to hide again on extra large screens.