HTML srcdoc Attribute
HTML srcdoc Attribute
The srcdoc attribute is used to specify the HTML content of the page to show in the inline frame. If the browser support srcdoc attribute then the browser will override src attribute. If the browser does not support srcdoc attribute then the browser will use src attribute.
Used With:-
Element | Attribute |
---|---|
iframe | srcdoc |
Syntax:-
Its syntax is:- < element srcdoc="value" >