

= 'Hello world' Įdit 2 (December 2017): use the Html5's srcdoc attribute, just like in Saurabh Chandra Patel's answer, who now should be the accepted answer! If you can detect IE/Edge efficiently, a tip is to use srcdoc-polyfill library only for them and the "pure" srcdoc attribute in all non-IE/Edge browsers (check to be sure). Customizing CSS Copy your forms Iframe embed code, located in the Publish Code section of the Publish page. WordPress iFrame: How to Use iFrames With WordPress. The following example will create an aspect ratio of 16:9, which is the default aspect ratio of YouTube videos. How to Embed iFrame Code on Your WordPress Site (Manually and with Plugins). With the help of this tool, you can generate your iframe codes easily with just a click of a button. The Javascript technique would look something like this: var iframe = document.getElementById('foo'), Step 2) Add CSS: Add a percentage value for padding-top to maintain the aspect ratio of the container DIV. iFrame Embed Code Generator is a free online tool. The instructions on how to use this tool are written below: Step 1 - The users have to add the URL of the specified site that they want to embed.
The