Aabestfontgenerator.
THE TYPE NOTEBOOK

Bootstrap Font Size Utilities

Use Bootstrap 5.3 font size utility classes, understand their scale and check line breaks without changing a heading’s semantic level.

Use a Bootstrap fs class when you need a different visual size. Keep the HTML element appropriate for the content.

Sources reviewed .

01

Apply the size utility to the existing element

Bootstrap 5.3 documents fs-1 through fs-6, with the larger sizes at the lower numbers. Try <h2 class="fs-4">Account settings</h2>. This keeps the h2 element while changing its visual size. Confirm the Bootstrap version and stylesheet when a class has no effect.

02

Check which typography properties still need attention

Bootstrap distinguishes the size utilities from heading styles that can also apply font weight and line height. Compare a wrapped h2 with a short h2 at the same utility size. If you need a different line height, treat it as a separate decision and proof the two-line result.

03

Compare the rendered layout across screen widths

Check the longest heading and an ordinary paragraph at narrow and wide widths. Inspect the actual heading order in the page. For custom sizing beyond the framework scale, see the CSS font size guide. Try the homepage text generator for a separate copyable caption.

GOOD QUESTIONS

Your questions, answered.

Does fs-4 turn a heading into an h4?

The class changes the visual font size. The HTML element keeps its semantic role.

Which is larger, fs-1 or fs-6?

In the documented Bootstrap 5.3 scale, fs-1 is the larger size.

Sources & background

Sources supporting this page’s explanations. Practical examples are our editorial suggestions.