---
id: "iframe-srcdoc"
kind: "web-feature"
canonical: "https://timetostable.com/feature/iframe-srcdoc"
baseline: "high"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# srcdoc (`iframe-srcdoc`)

The srcdoc attribute for the <iframe> HTML element sets a string of HTML to embed in the document. The value of srcdoc overrides loading a document from the src attribute.

- **Group**: other
- **Baseline**: Widely Available
- **Newly Available Date**: 2020-01-15
- **Widely Available Date**: 2022-07-15
- **Specification**: https://html.spec.whatwg.org/multipage/iframe-embed-object.html#attr-iframe-srcdoc
- **Constituent BCD keys**: 2

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 20 | 2012-06-26 |
| Safari | 6 | 2012-07-25 |
| Safari on iOS | 6 | 2012-09-10 |
| Chrome Android | 25 | 2013-02-27 |
| Firefox | 25 | 2013-10-29 |
| Firefox for Android | 25 | 2013-10-29 |
| Edge | 79 | 2020-01-15 |

