EmbeddedHTML
✖
EmbeddedHTML
is an object that formats as a web frame containing the HTML content "string".
formats as a rendering of the webpage corresponding to the specified URL.
Details and Options

- The string given to EmbeddedHTML can be HTML for a full HTML page, given in the form <html> ... </html>, or can be a sequence of pure HTML tags of the kind found in the body of an HTML page.
- Using JavaScript or CSS requires giving the HTML for a full HTML page.
- EmbeddedHTML is fully supported in the Wolfram Cloud System and can appear at any level in an expression. On desktop systems, it may be supported only as a separate browser window.
- In the Wolfram Cloud System, EmbeddedHTML is rendered in an iframe and is robust with respect to malformed and malicious HTML.
- The following option can be used:
-
ImageSize Automatic width and height reserved for web frame rendering "CompletePage" False whether the given HTML string represents a full HTML page "Title" Automatic caption of the button opening the browser window, when rendering as a button "Verify" True whether to verify that the webpage allows embedding - With ImageSize->Automatic, the web frame will be large enough space to render the HTML, so long as this does not make it larger than the notebook in which it appears.
- With "Title"->Automatic, the button's title will be a shortened version of the literal HTML string or the embedded URL.
- In EmbeddedHTML[URL[…]], if a webpage's headers forbid embedding, a link is returned that opens the webpage in a separate browser window.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (1)Survey of the scope of standard use cases

https://wolfram.com/xid/0v5uff33qdhdq-o98yyc


https://wolfram.com/xid/0v5uff33qdhdq-bmjevd

Deploy a form as a cloud object and embed it in a cloud notebook:

https://wolfram.com/xid/0v5uff33qdhdq-3e80tp


https://wolfram.com/xid/0v5uff33qdhdq-8iwl8b

Options (4)Common values & functionality for each option
ImageSize (1)
"CompletePage" (1)
Specify a complete HTML page including its HTML head:

https://wolfram.com/xid/0v5uff33qdhdq-w9exlk

Note that automatic size detection does not work with "CompletePage"->True, so the embedding will use the full available size of the notebook.
"Title" (1)
"Verify" (1)
Disable verification that a website allows embedding, which might result in an iframe that fails to display:

https://wolfram.com/xid/0v5uff33qdhdq-x6qb47

Verify if a page can be embedded and display a button if embedding is not permitted:

https://wolfram.com/xid/0v5uff33qdhdq-x5286l

Possible Issues (2)Common pitfalls and unexpected behavior
A webpage's headers might forbid embedding, so it will be shown as a button that opens the webpage in a separate browser tab, even in a cloud notebook:

https://wolfram.com/xid/0v5uff33qdhdq-y20dlf

JavaScript code running in the embedded HTML cannot access the outer window due to sandboxing. Any such attempt will result in a browser console error:

https://wolfram.com/xid/0v5uff33qdhdq-9cbfja

Wolfram Research (2014), EmbeddedHTML, Wolfram Language function, https://reference.wolfram.com/language/ref/EmbeddedHTML.html.
Text
Wolfram Research (2014), EmbeddedHTML, Wolfram Language function, https://reference.wolfram.com/language/ref/EmbeddedHTML.html.
Wolfram Research (2014), EmbeddedHTML, Wolfram Language function, https://reference.wolfram.com/language/ref/EmbeddedHTML.html.
CMS
Wolfram Language. 2014. "EmbeddedHTML." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EmbeddedHTML.html.
Wolfram Language. 2014. "EmbeddedHTML." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EmbeddedHTML.html.
APA
Wolfram Language. (2014). EmbeddedHTML. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EmbeddedHTML.html
Wolfram Language. (2014). EmbeddedHTML. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EmbeddedHTML.html
BibTeX
@misc{reference.wolfram_2025_embeddedhtml, author="Wolfram Research", title="{EmbeddedHTML}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/EmbeddedHTML.html}", note=[Accessed: 25-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_embeddedhtml, organization={Wolfram Research}, title={EmbeddedHTML}, year={2014}, url={https://reference.wolfram.com/language/ref/EmbeddedHTML.html}, note=[Accessed: 25-March-2025
]}