Create an inline frame with iframe in HTML and CSS

Description

The following code shows how to create an inline frame with iframe.

Example


<html>
<!-- w  w w .  j a va2 s  . com-->
<head>
<title>An inline frame</title>
</head>

<body>
<h1>iframe</h1>
<p>Here you can see a map.<br />
<iframe src="http://maps.google.co.uk/maps?q=Newquay,+Cornwall,+United+Kingdom&&output=embed"
width="425" height="350">
Cannot see the map?
<a href=" http://maps.google.co.uk/maps?q=Newquay,+Cornwall,+United+Kingdom">
Click here to view our location on Google Maps</a>.
</iframe><br />
It should show you where to find us.</p>
</body>

</html>

Click to view the demo

The code above generates the following result.

Create an inline frame with iframe in HTML and CSS