iframe src vs srcdoc code example Example: iframe srcdoc <iframe srcdoc="<p>Hello world!</p>"></iframe>