Skip to content

Account Settings Page with Tabs

Bootstrap 5 account settings page with profile, security and notification tabs, password strength meter, session list and simulated save.

Also known as: user settings page, profile settings tabs, account preferences page, edit profile page

Account Settings Page with Tabs live demo

Open in new tab

Bootstrap 5 code (HTML, CSS, JS)

A Bootstrap 5 account settings page with three tabbed sections: a public profile form, security settings with a password strength meter and active sessions, and a notification preferences matrix. Drop it into a SaaS app, a community site or any product that lets users manage their own account.

How it works

The root .as-settings contains a header with an avatar and a card-like .as-shell. Inside, .as-tabs is a Bootstrap pills nav with data-bs-toggle="pill" buttons. On phones it is a horizontally scrolling row; from the md breakpoint it turns into a vertical rail beside the .tab-content. Bootstrap's tab plugin switches the panes and handles arrow-key navigation.

Each section is an .as-form with novalidate. On submit the script calls checkValidity(); invalid forms get Bootstrap's was-validated class and focus moves to the first invalid field. Valid forms show a spinner in .as-save, wait 900 ms and then write the button's data-as-message into the form's .as-status region. Replace that timeout with a fetch() call that posts new FormData(form) to your API.

The profile form counts characters in .as-bio and previews an uploaded photo in every .as-avatar__img. In the security pane, buttons with data-as-toggle reveal or hide the matching password field, typing in .as-new sets data-level (0 to 4) on .as-strength to color the four segments, and .as-confirm uses setCustomValidity() until both passwords match. .as-signout buttons remove a session row and announce it. The notifications pane uses switches in a table plus btn-check radios for the digest frequency.

Customization

  • --as-accent, --as-accent-hover and --as-accent-rgb on .as-settings in style.css: change the violet used by active tabs, buttons, switches and focus rings.
  • --as-page-bg and --as-radius: set the warm page background and the corner radius of the main card.
  • data-as-message on each .as-save button: change the confirmation text shown after saving.
  • scorePassword() in script.js: adjust the rules that decide the strength level shown by .as-strength.
  • .as-strength[data-level="1"] to [data-level="4"] rules: recolor the strength segments.
  • pattern="[a-z0-9_]{3,20}" on #as-username: relax or tighten the allowed username format.
  • maxlength="160" on .as-bio: the counter reads it automatically.
  • Add a new nav-link button and tab-pane pair (for example Billing) following the same aria-controls pattern.

Use cases

  • SaaS apps: users edit their public profile, security options and notifications in one tabbed page
  • Community sites: a notification preferences matrix controls which alerts arrive and where
  • Security settings: a password strength meter and an active sessions list help users stay safe
  • Member portals: a simulated save shows how the page behaves before you connect a backend

Accessibility

The tab list has role="tablist", aria-orientation="vertical" and a label; each tab is linked to its panel with aria-controls and aria-labelledby. Every field has a visible label, the username field links its help text with aria-describedby, and each switch in the matrix has its own aria-label. Show/hide buttons expose aria-pressed and update their label. Save results and signed-out sessions are announced through role="status" live regions, and the save button uses aria-disabled so it keeps focus while busy. Focus rings use the accent color, and transitions stop under prefers-reduced-motion.

Usage notes

Requires Bootstrap 5.3 with its JS bundle and Bootstrap Icons. Ids such as as-new and as-pane-profile are fixed, so use one instance per page.

Account Settings Page with Tabs at a glance

Framework
Bootstrap 5
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
Bootstrap 5, Bootstrap Icons
Layout
Responsive, works on mobile
Category
Profile Pages
License
Free for personal and commercial use

Questions about this template

Can I use the Account Settings Page with Tabs code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load Bootstrap 5 and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
  • <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Account Settings Page with Tabs – free Bootstrap 5 profile page template
Account Settings Page with Tabs · free Bootstrap 5 profile page template

More Profile Pages

Edit Profile Form with Photo Upload – free Tailwind CSS profile page template

Edit Profile Form with Photo Upload

Tailwind CSS edit profile form with drag-and-drop photo upload and live preview, bio character counter, social link fields and simulated save.