<!DOCTYPE html>
<html>
<head>
<title>HTML Iframes Example</title>
</head>
<body>
<iframe src="http://careerride.com/" width="600" height="200"></iframe>
</body>
</html>
Property | Description |
---|---|
src | It indicates the location of the web page to be loaded into the frame. |
align | It aligns the iframe. Its values can be left, right, top, middle, bottom. |
name | It specifies the name to the frame. |
frameborder | It specifies whether or not display a border of an iframe. Its values can be 0 or 1. |
height | It sets the height in an iframe. |
width | It sets or returns the value of the width attribute in an iframe. |
marginheight | It sets the top and bottom margins of the content of an iframe. Its values can be in pixels. |
marginwidth | It sets the left and right margin of the content of an iframe. Its values can be in pixels. |
longdesc | It specifies the link of a page that contains a long description of the content of an iframe. |
noresize | It disables the frame resizing capability. |
scrolling | It controls the appearance of horizontal and vertical scrollbars in a frame. Its values can be 'yes', 'no' or 'auto'. |
<!DOCTYPE html>
<html>
<body>
<iframe width="600" height="200" name="iframe_a"></iframe>
<p><a href="http://careerride.com/" target="iframe_a">CareerRide.com</a></p>
</body>
</html>