English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Manual de referência HTML

大全 de etiquetas HTML

HTML: <frame> propriedade src

Este artigo introduce a propriedade src do atributo frame do HTML, que especifica o URL do documento a ser exibido no frame, demonstrando em tempo real como usar a propriedade src do frame do HTML, a compatibilidade do navegador, a definição sintática e as informações detalhadas de seus valores.

 HTML <frame> tag

Online example

The src attribute specifies the location of the document to be displayed in the <frame>:

<frameset cols="50%,50%">
  <frame src="frame_a.htm">
  <frame src="frame_b.htm">
</frameset>
Test see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

All major browsers support the src attribute.

Definition and usage

HTML5 The <frame> tag is not supported.

The src attribute specifies the URL of the document to be displayed in the frame.

Syntax

<frame src="URL">

Attribute value

ValueDescription
URLSpecifies the address of the document to be displayed in the frame.

Possible values:

  • Absolute URL - Points to another website (for example src="http://www.example.com/default.htm"

  • Relative URL - Points to a file within the website (for example src="default.htm")

 HTML <frame> tag