8.2 Embedding a Simulation in an iframe
Refer to the official documentation here: https://github.com/phetsims/phet-info/blob/master/doc/phet-development-overview.md#embedding-a-simulation-in-your-website
To embed a simulation in your website, use an iframe like so:
<iframe
="somefile.html"
src="834" height="504">
width</iframe>
The aspect ratio 834x504 is used for new simulations, because it matches the aspect ratio available on popular devices.
To see a full embedding example in context, view the source for this page: https://phet-dev.colorado.edu/html/acid-base-solutions/1.1.0/acid-base-solutions_en-iframe.html
Citation: PhET Interactive Simulations. They can be found here at: https://github.com/phetsims
Available under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).