AI TOOLS

Share a Bootstrap page as a link

A page styled with Bootstrap from a CDN is already a single HTML file. Upload it and send the link. Here are the two tags that work and the two mistakes that leave menus and modals dead.

3 min read·

Bootstrap gives a page ready-made layout, buttons, navbars, modals and dropdowns through CSS classes. AI tools use it often when you ask for a landing page, a dashboard mock-up or a form, because it loads from a CDN and needs no build step.

The result is one HTML file. To share it, upload that file and send the link.

The two tags

The stylesheet goes in the head and the script goes at the end of the body:

  • ✓<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet">
  • ✓<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js"></script>
  • ✓Use bootstrap.bundle.min.js. The bundle includes Popper, which dropdowns, tooltips and popovers need.
  • ✓Pinning the version (5.3.8 here) keeps the page looking the same if Bootstrap changes later.

What was tested

Tested in Chrome with Bootstrap 5.3.8 from a local file: the btn-primary button rendered in Bootstrap blue, and clicking the buttons opened a modal, opened a dropdown menu and expanded a collapse panel.

If menus or modals do nothing

Both were reproduced in Chrome:

  • ✓The dropdown does not open and the console shows TypeError: i.createPopper is not a function: the page loads bootstrap.min.js without Popper. Swap it for bootstrap.bundle.min.js.
  • ✓Buttons do nothing and the console is empty: the page uses Bootstrap 4 attributes such as data-toggle="modal" and data-target="#id" with Bootstrap 5. Rename them to data-bs-toggle and data-bs-target.
  • ✓If the page has no styling at all, check that the stylesheet link is still there and that the page is opened online, since both files come from the CDN.

Upload it and send the link

Drag the HTML file onto the FileShare Pro dashboard and copy the link. Viewers need no account.

Turn on comments and reviewers can pin notes to parts of the page after typing a name. When you change the page, upload the new file over the old one and the link stays the same: updating a shared link without changing it.

Related: sharing a Tailwind CSS page as a link and sharing an Alpine.js page as a link.

Frequently asked

Does a Bootstrap page need a server?

No. Bootstrap is CSS and browser JavaScript loaded from the CDN, so the page works from any static link, or from a double-click on your computer while you are online.

Can a Bootstrap form collect answers?

Not on its own. Bootstrap styles the form; the answers need somewhere to go: a feedback form with no backend.

Is it free?

Yes. The free plan hosts up to 50 files of up to 100 MB each, with view counts and comments included. Password-protected links are on Pro.

Got a page to share?

Drop the file, copy the link — live in seconds, free plan included.

Start sharing free