How Do I Use the Embed Code Tool?

Embedding Web Content (Embed Code and Web Page)

Applies to: Flex Editor & Slide Editor


You can show a simulation, graph, calculator or web page right inside an Activity, so students don’t leave Classwork.com. In the Flex Editor, add a Web Page item. In the Slide Editor, use the Embed Code tool. Both take the <iframe> embed code that many sites offer under Share or Embed (often a </> button).


Flex Editor: Web Page

  1. Click + Add. On the Add Item tab, under Content, click Web Page.


Step by step: + Add, then Web Page under Content; the Edit web page window opens


  1. Paste a web address or the iframe embed code into Page URL or iframe embed code. Add a Title (optional) if you like.
  2. Leave Width (px) and Height (px) on Automatic, or type a size in pixels.
  3. Check the Preview, then click Save.


Edit web page: 1, Page URL or iframe embed code; 2, Width and Height; 3, the Preview; 4, Save


Some sites don’t allow embedding. If the preview stays blank, students can still use Open in new tab. Work students do inside the page may be lost when they move away from it.


Slide Editor: Embed Code

  1. In the Tool Box, under Content Tools, click Embed Code.
  2. Click and drag on the slide to draw the area for the content.
  3. The Generic Embed window opens. (If it doesn’t, select the box and click Edit... in the toolbar, or double-click it.) Paste the iframe code into Embed Code.
  4. Under Display, choose how it shows:
    • Inline: inside the box you drew.
    • Floating: a button that opens the content beside the Activity, so students see both. Type the text for the button in Button label.
  5. Click Save. Inline content shows in the box on the slide, so you can check it there.


Step by step: Embed Code in the Tool Box, the Generic Embed window with Inline and Floating, and the content on the slide


Only seeing a web address instead of the content? You copied the link, not the embed code. Look for the code that starts with <iframe.


Example: PhET science simulations

  1. Open the simulation and click the </> icon under the title.
  2. Click Copy to clipboard.
  3. Paste the code into a Web Page item (Flex) or an Embed Code box (Slide).


Want only one screen of a multi-screen simulation? Add ?screens=1 to the end of the address inside the iframe (use the screen number you want).


PhET embed code with screens=1 added to the end of the address


PhET simulations are licensed CC-BY-4.0. Add the credit in a Text box, for example: (Simulation name) by PhET Interactive Simulations, University of Colorado Boulder, licensed under CC-BY-4.0 (https://phet.colorado.edu).


Example: Desmos

  1. Open your Desmos graph and click Share.
  2. Click Embed and copy the whole <iframe> code.
  3. Paste it into a Web Page item (Flex) or an Embed Code box (Slide).


Desmos Share Your Graph panel with the Embed option and the iframe code selected


Desmos is copyright Desmos Studio PBC.


Any other web page (Slide Editor)

Put the address in this code, change the size if needed, and paste it into Embed Code:


<iframe src="URL" width="800" height="600"></iframe>


In the Flex Editor you can paste the address itself into a Web Page item.


Classwork.com doesn’t own third-party content. Give credit where the creator asks for it.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article