--- name: bootstrap-content description: This skill should be used when the user asks about Bootstrap typography, "how do I style text in Bootstrap", "show me Bootstrap heading styles", "Bootstrap text looks wrong", "text not wrapping in Bootstrap", "how to create responsive tables", "Bootstrap table not responsive", "Bootstrap table overflowing on mobile", "how do I format code blocks", "Bootstrap images not responsive", "why is my Bootstrap image not scaling", "how to center images in Bootstrap", "image thumbnail not working", "how to add figure captions", "figure caption not showing", display headings, lead text, text alignment, text formatting, tables, table styling, responsive images, figures, code blocks, blockquotes, lists, abbreviations, horizontal rules, Reboot CSS reset, or when help is needed styling text, tables, images, and other content elements in Bootstrap. --- # Bootstrap 5.3 Content Bootstrap provides typography, image, table, and other content styles built on top of Reboot, a normalized baseline. ## Reboot Bootstrap Reboot normalizes default browser styles for consistent cross-browser rendering. It provides a foundation for the typography and content styles that follow. ### Code Elements ```html
Use <section> for page sections.
<p>Sample text here...</p>
<p>And another line.</p>
y = mx + b
Press Ctrl + C to copy.
Or type cd to change directory.
Ctrl + Shift + P This text is meant to be sample output from a program. ``` ### Address ```html Company NameHTML is the foundation of the web.
CSS for styling.
``` See `references/reboot-reference.md` for CSS variables, page defaults, native font stack, and Sass customization options. ## Typography ### Headings Standard HTML headings with Bootstrap styling: ```htmlh1 styled paragraph
h3 styled paragraph
``` ### Display Headings Larger, more opinionated headings: ```htmlThis is a lead paragraph. It stands out from regular paragraphs.
``` ### Inline Text Elements ```html Highlighted textfs-1 text (2.5rem)
fs-2 text (2rem)
fs-3 text (1.75rem)
fs-4 text (1.5rem)
fs-5 text (1.25rem)
fs-6 text (1rem)
Bold text
Bolder text
Semibold text
Medium text
Normal text
Light text
Lighter text
Italic text
Normal style text
Line height 1
Small line height (1.25)
Base line height (1.5)
Large line height (2)
Underlined
Line through
No decoration
``` ### Text Alignment ```htmlLeft aligned (LTR)
Center aligned
Right aligned (LTR)
Responsive alignment
``` ### Text Wrapping and Overflow ```htmlWrapping text
No wrap text
Truncated text with ellipsis...
Break long words
``` ### Blockquotes ```htmlA well-known quote, contained in a blockquote element.
LOWERCASED TEXT
uppercased text
capitalized text
``` ### Monospace Font ```htmlThis is in monospace
``` ### Reset Color ```htmlMuted text with a reset link.
``` ### Customizing Headings Add secondary, faded text to headings: ```html
| # | Name | |
|---|---|---|
| 1 | John | john@example.com |
| # | Name |
|---|
| # | Name |
|---|
| # | Name |
|---|---|
| 1 | John |
| Item | Price |
|---|---|
| Product A | $10.00 |
| Total | $10.00 |
| ... |