Consistent typography improves readability and gives the website a polished, trustworthy feel. It helps users focus on content without distraction.
The display-1 class in Bootstrap is used for large, consistent heading styles. Other classes serve different purposes like alignment or buttons.
<main> element using CSS. Which selector is correct?The selector main p targets all <p> elements inside the <main> element, applying consistent typography. Option C reverses the order, which is invalid. Option C targets elements with class main, not the <main> tag. Option C only targets direct children, which may miss nested paragraphs.
The mb-3 class adds a consistent bottom margin to elements, helping maintain vertical rhythm in typography. Other classes control text color, display, or background color.
Using relative font sizes allows users to scale text easily, and good color contrast ensures readability for people with vision impairments. Fixed sizes and ignoring contrast reduce accessibility. Decorative fonts can harm readability.