iframe srcdoc
snippet in html

iframe srcdoc

user8430

<iframe srcdoc="<p>Hello world!</p>"></iframe>