References

Collection of references for web development.

HTML srcdoc attribute

Description

Specifies the HTML content to show in the iframe.

Values

Value
code

Example

<iframe srcdoc="<p>HTML content</p>" width="300" height="300"></iframe>