Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The iframe srcdoc attribute</h1>
<iframe srcdoc="<p>Hello world!</p>" src="https://horje.com">
<p>Your browser does not support iframes.</p>
</iframe>
</body>
</html>
How to add An <iframe> with a srcdoc attribute - | HTML Attribute |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Attribute |
Uploaded by: | Admin |