Loading...
Skip to main content

Cheatsheet examples

BootstrapCheatsheet

Contents

Typography

Documentation
.fs-xs
.fs-sm
.fs-md
.fs-lg
.fs-xl
.fs-2xl
.fs-3xl
.fs-4xl
.fs-5xl
.fs-6xl

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5

Heading 6

You can use the mark tag to highlight text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as an addition to the document.

This line of text will render as underlined.

This line of text is meant to be treated as fine print.

This line rendered as bold text.

This line rendered as italicized text.


A well-known quote, contained in a blockquote element.

Someone famous in Source Title

  • This is a list.
  • It appears completely unstyled.
  • Structurally, it's still a list.
  • However, this style only applies to immediate child elements.
  • Nested lists:

    • are unaffected by this style
    • will still show a bullet
    • and have appropriate left margin
  • This may still come in handy in some situations.
  • This is a list item.
  • And another one.
  • But they're displayed inline.
#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3JohnDoe@social
#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3JohnDoe@social
ClassHeadingHeading
DefaultCellCell
PrimaryCellCell
AccentCellCell
SuccessCellCell
DangerCellCell
WarningCellCell
InfoCellCell
InverseCellCell
SecondaryCellCell
#FirstLastHandle
1MarkOtto@mdo
2JacobThornton@fat
3JohnDoe@social
Placeholder400x300
A caption for the above image.

Forms

We'll never share your email with anyone else.
Radios buttons

Disabled forms

Documentation
Disabled radios buttons

Validation

Documentation
Looks good!
Looks good!
@
Please choose a username.
Please provide a valid city.
Please select a valid state.
Please provide a valid zip.
You must agree before submitting.

Components

Accordion

Documentation
Accordion Item #1
Accordion Item #1's accordion body. It is shown by default because the open attribute is present. The native <details> element handles all the show/hide logic without any JavaScript. You can put any HTML content within the accordion body.
Accordion Item #2
Accordion Item #2's accordion body. The name attribute groups this with other accordion items. When you open this item, any other open item in the same group will close automatically.
Accordion Item #3
Accordion Item #3's accordion body. This exclusive accordion behavior is built into the browser?no Bootstrap JavaScript required. Just use matching name attributes on the <details> elements.

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New

Example heading New

PrimaryAccentSuccessDangerWarningInfoInverseSecondary
PlaceholderImage cap

Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Go somewhere
Featured

Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

Go somewhere

Card title

Some quick example text to build on the card title and make up the bulk of the card's content.

  • An item
  • A second item
  • A third item
PlaceholderImage

Card title

This is a wider card with supporting text below as a natural lead-in to additional content. This content is a little bit longer.

Last updated 3 mins ago

Scrollspy

Documentation

First heading

This is some placeholder content for the scrollspy page. Note that as you scroll down the page, the appropriate navigation link is highlighted. It's repeated throughout the component example. We keep adding some more example copy here to emphasize the scrolling and highlighting.

Second heading

This is some placeholder content for the scrollspy page. Note that as you scroll down the page, the appropriate navigation link is highlighted. It's repeated throughout the component example. We keep adding some more example copy here to emphasize the scrolling and highlighting.

Third heading

This is some placeholder content for the scrollspy page. Note that as you scroll down the page, the appropriate navigation link is highlighted. It's repeated throughout the component example. We keep adding some more example copy here to emphasize the scrolling and highlighting.

Fourth heading

This is some placeholder content for the scrollspy page. Note that as you scroll down the page, the appropriate navigation link is highlighted. It's repeated throughout the component example. We keep adding some more example copy here to emphasize the scrolling and highlighting.

Fifth heading

This is some placeholder content for the scrollspy page. Note that as you scroll down the page, the appropriate navigation link is highlighted. It's repeated throughout the component example. We keep adding some more example copy here to emphasize the scrolling and highlighting.

Loading...Loading...Loading...Loading...Loading...Loading...Loading...Loading...
Loading...Loading...Loading...Loading...Loading...Loading...Loading...Loading...

Dialog title

This is a native dialog element using Bootstrap's Dialog component.

Static backdrop

I will not close if you click outside of me. Use the close button or press Escape.