1.Create iframe Inside HTML
<!DOCTYPE html> <html> <body> <h2>HTML Iframes</h2> <p>You can also use the CSS height and width properties to specify the size of the iframe:</p> <iframe src="demo_iframe.htm" style="height:200px;width:300px" title="Iframe Example"></iframe> </body> </html>
<!DOCTYPE html> <html> <body> <h2>Iframe - Target for a Link</h2> <iframe src="demo_iframe.htm" name="iframe_a" height="300px" width="100px" title="Iframe Example"></iframe> <p><a href="https://bajarangisoft.com" target="iframe_a">bajarangisoft.com</a></p> <p>When the target attribute of a link matches the name of an iframe, the link will open in the iframe.</p> </body> </html>