iframe src Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:iframe

Description

The src attribute specifies the address of the document to embed in the <iframe>.

Attribute Values

Value Description
URL Specifies the URL of the document to embed in the iframe.

An <iframe> in its simplest use:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<iframe src="http://java2s.com">
  <p>Your browser does not support iframes.</p>
</iframe><!--  ww  w  .  j a  va2 s .  c om-->

</body>
</html>

Related Tutorials