how to use iframe to embed a website code example Example: put html in iframe <iframe srcdoc="<html><body>Hello, <b>world</b>.</body></html>"></iframe>