Atrybut HTML <iframe> src

❮ Tag HTML <iframe>

Przykład

<iframe> w najprostszym użyciu:

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

Definicja i użycie

srcAtrybut określa adres dokumentu do osadzenia w iframe .


Obsługa przeglądarki

Attribute
src Yes Yes Yes Yes Yes

Składnia

<iframe src="URL">

Wartości atrybutów

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")

❮ Tag HTML <iframe>