html iframe tutorial code example

Example 1: html iframe tag

<iframe src="http://kidcreatorsteam.com" height="90px" width="40px"></iframe>
<!--I made an iframe! Yay! -->

Example 2: html iframe example

<iframe src="http://www.codegrepper.com"></iframe>

Example 3: iframe html

<iframe id="inlineFrameExample"
    title="Inline Frame Example"
    height="200"
    style="border: 0px;width: 100%;"
    src="https://www.openstreetmap.org/export/embed.html?bbox=-0.004017949104309083%2C51.47612752641776%2C0.00030577182769775396%2C51.478569861898606&layer=mapnik">
</iframe>

Example 4: iframe in html

<iframe src="yourURL" height="200" width="300"></iframe>

Example 5: put html in iframe

<iframe srcdoc="<html><body>Hello, <b>world</b>.</body></html>"></iframe>

Tags:

Misc Example