--- metadata: display_name: IFrame Tool data: |
Use the IFrame tool to embed an exercise or tool from any web site into your course content. For example, the tool below allows learners to experiment with how the shape of a triangle affects a line that is derived from the triangle.
Exercises in an IFrame are not graded. To embed graded exercises, use a Custom JavaScript Problem.
The following code is the HTML format required to use the IFrame tool. For the IFrame in this template, you must replace the values in italics.
<iframe title="The required title of the tool"
src="The URL of the tool, starting with https://">
Message displayed when the browser does not support IFrames.
</iframe>
The Iframe below includes the width, height, marginwidth, marginheight, frameborder, and scrolling attributes. These attributes are optional. You can remove these attributes or replace their values.
Modify this template as needed.
To modify the IFrame, you must edit the HTML source code. When editing this template, click HTML in the toolbar.
Then modify the example below for your own use.
Note: The URL must start with https instead of http, to ensure that the tool appears in all browsers that support IFrames.
Your browser does not support IFrames.
A learner sees this text if the browser does not support IFrames.
The sample IFrame follows. Modify its attributes as described above.