How to use these templates in Canvas
- Click a category below to open it, then copy the code under the template you want.
- In your Canvas page, click the </> HTML editor icon (bottom right of the editor).
- Paste the code where you want it, then switch back to the regular editor.
- Replace the CAPITALIZED placeholder text with your own.
These use inline styles only, so they work in Canvas and most other LMS editors.
Callout Boxes (1)
Make key ideas, tips, and reminders stand out from the rest of the page.
Key Takeaway Callout
When to use it: To highlight the one idea you want learners to remember from a section, or to set up what comes next.
Preview
Key Takeaway
Students learn more when feedback is timely and specific. Short comments returned within a day or two lead to bigger gains than detailed comments returned weeks later.
In the next section, we’ll look at quick feedback routines you can use tomorrow.
Copy the code (click the code once to select it all, then press Ctrl+C / Cmd+C)
<div style="border-left: 5px solid #00ae50; background-color: #f0faf4; border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 1rem 0;">
<p style="font-family: Arial, sans-serif; font-size: 13px; color: #111111; margin: 0 0 10px 0;"><strong><span style="font-size: 14pt;">YOUR HEADING HERE</span></strong></p>
<p style="font-family: Arial, sans-serif; font-size: 15px; color: #111111; line-height: 1.65; margin: 0 0 12px 0;">YOUR FIRST PARAGRAPH HERE</p>
<p style="font-family: Arial, sans-serif; font-size: 15px; color: #111111; line-height: 1.65; margin: 0;">OPTIONAL SECOND PARAGRAPH (delete this line if you only need one)</p>
</div>
What to change: Replace the CAPITALIZED text. Delete the second paragraph line if you only need one. Change the heading to fit the purpose: Key Takeaway, Reflect, Try This, and so on.
Color ideas: swap the two hex codes (border, then background) to make a set of callouts for different purposes:
Did You Know?
Students learn more when feedback is timely and specific. Short comments returned within a day or two lead to bigger gains than detailed comments returned weeks later.
In the next section, we’ll look at quick feedback routines you can use tomorrow.
Heads Up
Students learn more when feedback is timely and specific. Short comments returned within a day or two lead to bigger gains than detailed comments returned weeks later.
In the next section, we’ll look at quick feedback routines you can use tomorrow.
#00ae50 | Green border: Key Takeaway |
#f0faf4 | Green background |
#1a73e8 | Blue border: Did You Know? |
#eef4fd | Blue background |
#e8a200 | Amber border: Heads Up |
#fff8e6 | Amber background |
🤖 Remix it with AI
Paste the code into your AI tool with a prompt like: “Here’s HTML for a Canvas callout box. Make three versions: green for Key Takeaway, blue for Did You Know?, and amber for Heads Up. Add a matching emoji before each heading. Use inline styles only.”
Accordions (4)
Hide longer content behind a clickable heading so pages stay short and scannable. These use built-in HTML, so no scripts are needed in Canvas.
Single Accordion
When to use it: For one long example, a transcript, extra detail, or optional reading you don’t want cluttering the page.
Preview
Click to read the full example
Hidden content stays tucked away until learners open it, which keeps long pages from feeling overwhelming.
Copy the code (click the code once to select it all, then press Ctrl+C / Cmd+C)
<details style="border: 1px solid #d0d7de; border-radius: 8px; margin: 12px 0; background: #ffffff;">
<summary style="font-family: Arial, sans-serif; font-size: 16px; font-weight: 700; color: #111111; padding: 14px 18px; cursor: pointer; background: #f0faf4; border-radius: 8px;">YOUR TITLE HERE</summary>
<div style="padding: 0 18px 16px 18px;">
<p style="font-family: Arial, sans-serif; font-size: 15px; color: #111111; line-height: 1.65; margin: 12px 0 0 0;">YOUR HIDDEN CONTENT HERE</p>
</div>
</details>
What to change: Replace the CAPITALIZED text. To add more paragraphs inside, copy the <p> line and paste it below.
🤖 Remix it with AI
Paste the code into your AI tool with a prompt like: “Here’s HTML for a Canvas accordion using details and summary. Change the title background to my course color #2a6f97 with white title text, and make sure the colors meet accessibility contrast. Use inline styles only.”
Accordion Group (FAQ)
When to use it: Course FAQs, module overviews, glossaries, or any list of questions and answers.
Preview
Frequently Asked Questions
When is this assignment due?
Sunday at 11:59 p.m. Late work is accepted for 48 hours.
How do I submit my work?
Click Submit Assignment at the top of the assignment page and upload your file.
Who do I contact for help?
Send a Canvas Inbox message to your instructor.
Copy the code (click the code once to select it all, then press Ctrl+C / Cmd+C)
<div style="margin: 1rem 0;">
<p style="font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #00733a; margin: 0 0 10px 0;">YOUR SECTION HEADING HERE</p>
<details style="border: 1px solid #d0d7de; border-radius: 8px; margin: 0 0 8px 0; background: #ffffff;">
<summary style="font-family: Arial, sans-serif; font-size: 16px; font-weight: 700; color: #111111; padding: 14px 18px; cursor: pointer; background: #f6f8fa; border-radius: 8px;">QUESTION OR TITLE 1</summary>
<div style="padding: 0 18px 16px 18px;">
<p style="font-family: Arial, sans-serif; font-size: 15px; color: #111111; line-height: 1.65; margin: 12px 0 0 0;">ANSWER OR CONTENT 1</p>
</div>
</details>
<details style="border: 1px solid #d0d7de; border-radius: 8px; margin: 0 0 8px 0; background: #ffffff;">
<summary style="font-family: Arial, sans-serif; font-size: 16px; font-weight: 700; color: #111111; padding: 14px 18px; cursor: pointer; background: #f6f8fa; border-radius: 8px;">QUESTION OR TITLE 2</summary>
<div style="padding: 0 18px 16px 18px;">
<p style="font-family: Arial, sans-serif; font-size: 15px; color: #111111; line-height: 1.65; margin: 12px 0 0 0;">ANSWER OR CONTENT 2</p>
</div>
</details>
<details style="border: 1px solid #d0d7de; border-radius: 8px; margin: 0 0 0 0; background: #ffffff;">
<summary style="font-family: Arial, sans-serif; font-size: 16px; font-weight: 700; color: #111111; padding: 14px 18px; cursor: pointer; background: #f6f8fa; border-radius: 8px;">QUESTION OR TITLE 3</summary>
<div style="padding: 0 18px 16px 18px;">
<p style="font-family: Arial, sans-serif; font-size: 15px; color: #111111; line-height: 1.65; margin: 12px 0 0 0;">ANSWER OR CONTENT 3</p>
</div>
</details>
</div>
What to change: Replace the CAPITALIZED text. To add a question, copy one whole <details> … </details> section and paste it below the others.
🤖 Remix it with AI
Paste the code into your AI tool with a prompt like: “Here’s HTML for a Canvas FAQ accordion. Turn it into a glossary with these 6 terms and definitions: [paste your terms]. Keep the same style and inline styles only.”
Check Your Understanding (Click to Reveal)
When to use it: Quick self-checks, practice problems, or discussion prompts where learners think first, then reveal the answer.
Preview
Check Your Understanding
Which is more effective: detailed feedback returned in three weeks, or brief feedback returned in two days?
Show answer
Brief feedback returned quickly. Students can still act on it while the work is fresh.
Copy the code (click the code once to select it all, then press Ctrl+C / Cmd+C)
<div style="border: 2px dashed #00ae50; border-radius: 10px; padding: 18px 22px; margin: 1rem 0; background: #ffffff;">
<p style="font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #00733a; margin: 0 0 8px 0;">Check Your Understanding</p>
<p style="font-family: Arial, sans-serif; font-size: 15px; color: #111111; line-height: 1.65; margin: 0 0 12px 0;">YOUR QUESTION HERE</p>
<details>
<summary style="font-family: Arial, sans-serif; font-size: 15px; font-weight: 700; color: #00733a; cursor: pointer;">Show answer</summary>
<p style="font-family: Arial, sans-serif; font-size: 15px; color: #111111; line-height: 1.65; margin: 10px 0 0 0; background: #f0faf4; padding: 12px 14px; border-radius: 6px;">YOUR ANSWER HERE</p>
</details>
</div>
What to change: Replace the CAPITALIZED text. Copy the whole box to make a set of practice questions.
🤖 Remix it with AI
Paste the code into your AI tool with a prompt like: “Here’s HTML for a Canvas click-to-reveal question. Make 5 of these for a lesson on [your topic], each with a question and a short answer. Use inline styles only.”
Dialogue Accordion (Role-Play Script)
When to use it: Classroom scenarios, role-plays, conversation models, or interview transcripts where seeing who says what matters.
Preview
Copy the code (click the code once to select it all, then press Ctrl+C / Cmd+C)
<div style="margin: 1rem 0; font-family: Arial, sans-serif;">
<details style="margin-bottom: 16px; border-radius: 8px; overflow: hidden; border: 1px solid #00ae50;">
<summary style="background-color: #00ae50; padding: 20px 24px; font-size: 14px; color: #111111; list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;"><span style="color: #000000; font-size: 14pt;"><strong>YOUR SCENARIO TITLE</strong></span><span style="margin-left: auto; color: #000000; font-size: 13px;">Click to open ▾</span></summary>
<div style="background-color: #ffffff;">
<div style="padding: 10px 24px; background-color: #f0faf4; display: flex; gap: 12px; align-items: baseline;"><span style="font-size: 11px; background-color: #00ae50; color: #111111; padding: 2px 10px; border-radius: 20px; white-space: nowrap;">SPEAKER 1</span>
<p style="font-size: 14px; color: #111111; line-height: 1.8; margin: 0;">LINE 1</p>
</div>
<div style="padding: 10px 24px; background-color: #ffffff; display: flex; gap: 12px; align-items: baseline;"><span style="font-size: 11px; background-color: #e0e0e0; color: #333333; padding: 2px 10px; border-radius: 20px; white-space: nowrap;">SPEAKER 2</span>
<p style="font-size: 14px; color: #111111; line-height: 1.8; margin: 0;">LINE 2</p>
</div>
<div style="padding: 10px 24px; background-color: #f0faf4; display: flex; gap: 12px; align-items: baseline;"><span style="font-size: 11px; background-color: #00ae50; color: #111111; padding: 2px 10px; border-radius: 20px; white-space: nowrap;">SPEAKER 1</span>
<p style="font-size: 14px; color: #111111; line-height: 1.8; margin: 0;">LINE 3</p>
</div>
<div style="padding: 10px 24px; background-color: #ffffff; display: flex; gap: 12px; align-items: baseline;"><span style="font-size: 11px; background-color: #e0e0e0; color: #333333; padding: 2px 10px; border-radius: 20px; white-space: nowrap;">SPEAKER 2</span>
<p style="font-size: 14px; color: #111111; line-height: 1.8; margin: 0;">LINE 4</p>
</div>
</div>
</details>
</div>
What to change: Replace the CAPITALIZED text. To add lines, copy a whole <div> … </div> row and paste it below. Green rows are Speaker 1 and white rows are Speaker 2, so alternate them as you go. For a second scenario, copy the whole <details> … </details> section.
🤖 Remix it with AI
Paste the code into your AI tool with a prompt like: “Here’s HTML for a Canvas dialogue accordion. Fill it with this conversation, keeping the speaker labels and alternating row colors: [paste your script]. Use inline styles only.”
Scenario Comparison Callouts (3)
For case studies, before/after examples, or any time you want learners to compare two situations.
Option 1 — Side by Side
When to use it: Short scenarios of about equal length, where you want readers to compare them at a glance.
Preview
Copy the code (click the code once to select it all, then press Ctrl+C / Cmd+C)
<div style="border-radius: 10px; overflow: hidden; margin: 16px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1);">
<div style="background: linear-gradient(135deg, #f6ba79 0%, #ff914d 100%); padding: 12px 20px;">
<p style="font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: white; margin: 0;">YOUR HEADER TEXT HERE</p>
</div>
<div style="display: flex; background: white;">
<div style="flex: 1; padding: 18px 20px; border-right: 2px solid #f6ba79;">
<p style="font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; color: #ec5300; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px 0;">LABEL A</p>
<p style="font-family: Arial, sans-serif; font-size: 14px; line-height: 1.7; color: #333; margin: 0;">YOUR TEXT HERE</p>
</div>
<div style="flex: 1; padding: 18px 20px;">
<p style="font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; color: #ec5300; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px 0;">LABEL B</p>
<p style="font-family: Arial, sans-serif; font-size: 14px; line-height: 1.7; color: #333; margin: 0;">YOUR TEXT HERE</p>
</div>
</div>
</div>
What to change: Replace the CAPITALIZED text. On phones the two columns get narrow, so keep each scenario to 2–3 sentences.
🤖 Remix it with AI
Paste the code into your AI tool with a prompt like: “Here’s HTML for a Canvas callout box. Keep the layout, but change the header to “Before & After” and recolor it to match my course color, #2a6f97. Use inline styles only so it works in Canvas.”
Option 2 — Stacked with Contrast Shading
When to use it: Medium to long scenarios. The most readable option on phones and in the Canvas Student app.
Preview
Copy the code (click the code once to select it all, then press Ctrl+C / Cmd+C)
<div style="border-radius: 10px; overflow: hidden; margin: 16px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.1);">
<div style="background: linear-gradient(135deg, #f6ba79 0%, #ff914d 100%); padding: 12px 20px;">
<p style="font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: white; margin: 0;">YOUR HEADER TEXT HERE</p>
</div>
<div style="background: #f5f5f5; padding: 18px 20px; border-bottom: 2px solid #f6ba79;">
<p style="font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; color: #ec5300; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px 0;">LABEL A</p>
<p style="font-family: Arial, sans-serif; font-size: 14px; line-height: 1.7; color: #333; margin: 0;">YOUR TEXT HERE</p>
</div>
<div style="background: #fff8f2; padding: 18px 20px;">
<p style="font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; color: #ec5300; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px 0;">LABEL B</p>
<p style="font-family: Arial, sans-serif; font-size: 14px; line-height: 1.7; color: #333; margin: 0;">YOUR TEXT HERE</p>
</div>
</div>
What to change: Replace the CAPITALIZED text. The two background colors (#f5f5f5 and #fff8f2) set the scenarios apart. Keep them light so text stays readable.
🤖 Remix it with AI
Paste the code into your AI tool with a prompt like: “Here’s HTML for a Canvas callout box with two stacked scenarios. Add a third section labeled “Scenario C” that matches the style of the other two. Use inline styles only.”
Option 3 — Stacked with Individual Left Borders
When to use it: When you want to quietly signal that one scenario is the neutral or “before” example and the other is the approach to aim for.
Preview
Consider these two scenarios
Scenario A
A teacher returns graded essays two weeks later with a letter grade and a few circled errors. Most students glance at the grade and put the paper away.
Scenario B
The same teacher returns short, targeted feedback within two days, and students spend ten minutes of class revising one paragraph based on it. Revisions show clear growth.
Copy the code (click the code once to select it all, then press Ctrl+C / Cmd+C)
<div style="margin: 16px 0;">
<p style="font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #c47d20; margin: 0 0 12px 0;">YOUR HEADER TEXT HERE</p>
<div style="border-left: 6px solid #cccccc; background: #f5f5f5; padding: 16px 20px; border-radius: 0 8px 8px 0; margin-bottom: 10px;">
<p style="font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; color: #ec5300; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px 0;">LABEL A</p>
<p style="font-family: Arial, sans-serif; font-size: 14px; line-height: 1.7; color: #333; margin: 0;">YOUR TEXT HERE</p>
</div>
<div style="border-left: 6px solid #ff914d; background: #fff3eb; padding: 16px 20px; border-radius: 0 8px 8px 0;">
<p style="font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; color: #ec5300; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 10px 0;">LABEL B</p>
<p style="font-family: Arial, sans-serif; font-size: 14px; line-height: 1.7; color: #333; margin: 0;">YOUR TEXT HERE</p>
</div>
</div>
What to change: Replace the CAPITALIZED text. The gray border marks the first scenario as neutral and the orange border highlights the second. Swap them if needed.
🤖 Remix it with AI
Paste the code into your AI tool with a prompt like: “Here’s HTML for a Canvas callout box. Make the first scenario’s left border red and the second’s green, and add ❌ before the first label and ✅ before the second. Use inline styles only.”
Change the colors to match your course
These templates use an orange theme. Swap these hex codes for your own colors. The grays (#f5f5f5, #cccccc, #333) can stay.
#f6ba79 | Light tint of your course color |
#ff914d | Mid tone |
#ec5300 | Dark tone |
#fff8f2 | Very light background tint |
#fff3eb | Very light background tint |
#c47d20 | Dark tone for label text |
🤖 Faster: paste the code into your AI tool and ask, “Recolor this to use my course color #______. Keep the same light-to-dark pattern and inline styles only.”
Get new templates when I add them.