Web
Analytics
Skip to Main Content

ChatGPT Meets LibGuides

Working together to make our LibGuides smarter.
← Back to Interactive Elements

Interactive Elements

Add skimmable cards, CTAs, collapsibles, tabs, and AI search—clean, accessible, and reusable.

🧭 Overview

Interactive elements help students skim, decide, and act: cards to spotlight tasks, CTAs to drive action, collapsibles to reduce clutter, tabs to compare options, and search boxes to jump straight to answers.

Tip: Save each pattern as a Reusable Asset and add a one-line usage note (when/why).

🗂️ InfoCards + CTA

Short, scannable cards with a clear action. Keep borders, radius, and spacing consistent with your banners/buttons.

Show Preview
Company Research
Filings, profiles, analyst coverage.
Open Databases
Industry Reports
Size, growth, key players.
View Reports
Show Code
<div style="background:#eef6ff;border:1px solid #cfe2ff;border-radius:12px;padding:12px;">...</div>

❓ Collapsible FAQ

Use native <details> for quick “reveal on demand.” Great for common questions and micro-explainers.

Show Preview

Quick Answers

How do I find peer-reviewed articles?
Use database filters (Peer-reviewed), subject terms, and date limits.
Where’s citation help?
See the Citation page or Ask a Librarian.
Show Code
<div style="background:#fdfdfd;border:1px solid #ddd;border-radius:12px;padding:14px;">...</div>

🧩 CSS Tabs

Compare options without scrolling. Uses radio inputs so it works with screen readers and keyboard navigation.

Show Preview
Company Research
Filings (10-K, 10-Q), analyst reports, ownership.
Industry Reports
Sizes, growth rates, Porter, key players.
Market Data
Consumers, segments, trends, forecasts.
Show Code
<div class="tabs">...inputs/labels/panels...</div>

📚 Accordion

Group longer content into expandable sections. Each uses native <details> for robust accessibility.

Show Preview
Step 1 — Pick a database
IBISWorld for industry; LSEG/Capital IQ for company; Statista for charts.
Step 2 — Build your query
Use keywords + filters. Save searches for reuse.
Step 3 — Save & cite
Export citations; capture 2–3 visuals for slides.
Show Code
<div class="accordion"><details><summary>...</summary><div class="content">...</div></details>...</div>

🔗 Anchors & Jump Links

Add id="" to headings, then link using #id. We also style :target so the section gets a subtle highlight after the jump.

Show Preview

Try it: Jump to Buttons

Show Code
<h3 id="buttons">Buttons</h3> ... <a href="#buttons">Jump to Buttons</a>

🔘 CTA Buttons

Use descriptive text; add aria-label when the text alone isn’t specific enough.

Show Preview
Show Code
<a class="btn-pill" aria-label="Open Company Databases" style="background:#2563eb;color:#fff;border:1px solid #1e4ed8;border-radius:999px;padding:8px 14px;text-decoration:none;font-weight:600;" href="#">Open Databases</a>

♿ Accessibility (Quick Wins)

  • Provide clear, descriptive link/CTA text (avoid “click here”).
  • Ensure keyboard focus rings are visible (we added outlines on the Search button).
  • Keep heading order logical (H2 → H3 → H4).
  • Check color contrast on buttons and text against WCAG AA.
Pro move: Add aria-label to icon-only tabs or CTAs; ensure role="search" on search wrappers.

Interactive Components

InfoCards + CTA
Skimmable tasks with strong actions.
Open
Collapsible FAQ
Reveal answers on demand.
Open
CSS Tabs
Compare options without scrolling.
Open
Accordion
Expandable sections for long content.
Open
Search Box
Guide/Site/Ask-AI search UI.
Open
CTA Buttons
Primary/secondary button patterns.
Open