HTML <iframe> src- Attribut

❮ HTML <iframe>-Tag

Beispiel

Ein <iframe> in seiner einfachsten Verwendung:

<iframe src="/default.asp"></iframe>

Definition und Verwendung

Das srcAttribut gibt die Adresse des Dokuments an, das in einen Iframe eingebettet werden soll.


Browser-Unterstützung

Attribute
src Yes Yes Yes Yes Yes

Syntax

<iframe src="URL">

Attributwerte

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

Possible values:

  • An absolute URL - points to another web site (like src="http://www.example.com/default.htm")
  • A relative URL - points to a file within a web site (like src="default.htm")

❮ HTML <iframe>-Tag