Complete the code to make the div hidden on small screens.
<div class="[1]">This text is hidden on small screens.</div>
block or flex which show the element.visible which controls visibility but not display.The hidden class hides the element on all screen sizes.
Complete the code to make the div visible only on medium screens and larger.
<div class="hidden [1]">Visible on medium and larger screens.</div>
sm:block which applies from small screens, not medium.lg:block which applies from large screens, missing medium.The class md:block makes the element display as block starting at medium screen size.
Fix the error in the code to hide the div on large screens.
<div class="block [1]">Hidden on large screens.</div>
lg:block which shows the element on large screens.hidden without prefix hides on all screens.The class lg:hidden hides the element starting at large screen size.
Fill both blanks to make the paragraph visible only on small screens, hidden on medium screens and larger.
<p class="[1] [2]">Visible on small screens only.</p>
hidden as default hides on all screens.md:block which shows on medium but not hides.block shows the element by default (small screens). md:hidden hides it on medium screens and larger.
Fill all three blanks to make the div hidden on small screens, visible on medium screens, and hidden again on extra large screens.
<div class="[1] [2] [3]">Responsive visibility toggling.</div>
block instead of hidden for default hiding.xl:hidden to hide on extra large screens.hidden hides the element by default (small screens). md:block shows it starting at medium screens. xl:hidden hides it again starting at extra large screens.