iframe

iframe

Iframe (por inline frame o marco incorporado en inglés) es un elemento HTML que permite insertar o incrustar un documento HTML dentro de un documento HTML principal. Fue introducido en el navegador Microsoft Internet Explorer en 1997 y durante mucho tiempo solo fue soportado en este navegador, la etiqueta Iframe actualmente es ya aceptada por la W3 como un elemento estandar y es ampliamente soportado por gran variedad de navegadores.

<html>
  <head>
    <title>IFrames</title>
  </head>
 
  <body>
    <iframe src="http://www.wikipedia.com/" name="SubHtml"
      width="400" height="500" scrolling="auto" frameborder="1" transparency>
      <p>Texto alternativo para navegadores que no aceptan iframes.</p>
    </iframe>
  </body>
</html>

Los iFrames admiten diversos atributos como "Transparency" que permite una visualización de la página mucho más atractiva ya que el fondo del iframe va a ser transparente, dejando ver el fondo original del archivo HTML principal.

En este ejemplo se incrusta un iframe cuyo contenido esta en la URL "http://es.wikipedia.org/". Se especifica el ancho de 400 píxeles (width="400") y un alto de 500 píxeles (height="500"). Si el contenido es más grande que el marco de la ventana, con "scrolling=auto" se activa la barra de desplazamiento para moverse dentro del iframe. La propiedad "frameborder" establece si el marco que contiene al iframe tiene borde o no. También se le denomina un nombre a la ventana con la propiedad "name" (name="SubHtml") con el que es posible hacer referencia al iframe para poder cambiar su dirección desde el html maestro.

Los documentos HTML también pueden incrustarse en otro documento a través del elemento object. Para más información sobre ello visita esta página (en inglés).

Por otro lado, el uso de iframes sirvió como inspiración de lo que hoy conocemos como AJAX, ya que cada parte de un documento html es independiente.

Referencias

Véase también


Wikimedia foundation. 2010.

Игры ⚽ Поможем решить контрольную работу

Mira otros diccionarios:

  • IFrame — (from Inline Frame ) is an HTML element which makes it possible to embed an HTML document inside another HTML document. The size of the IFrame can be specified in the surrounding HTML page, so that the surrounding page can already be presented in …   Wikipedia

  • Iframe — Saltar a navegación, búsqueda Iframe (por inline frame o marco incorporado en inglés) es un elemento HTML que permite insertar o incrustar un documento HTML dentro de un documento HTML principal. Insertar un iframe entre una sección o bloque es… …   Wikipedia Español

  • Iframe — или плавающий фрейм  отдельный, законченный HTML документ, который вместе с другим содержимым веб страницы, а также другими фреймами может быть отображён в любом месте веб страницы, независимо от положения тега <iframe> в теле страницы …   Википедия

  • IFrame — Beispiel: Wikimedia Startseite im Inlineframe (einmal normal und einmal mit frameborder= 0 und scrolling= 0 ) Ein Inlineframe (auch iframe, [ˈaɪfɹeɪm]) ist ein HTML Element, das der Strukturierung von Webseiten dient. Es wird benutzt, um andere… …   Deutsch Wikipedia

  • Iframe — Beispiel: Wikimedia Startseite im Inlineframe (einmal normal und einmal mit frameborder= 0 und scrolling= 0 ) Ein Inlineframe (auch iframe, [ˈaɪfɹeɪm]) ist ein HTML Element, das der Strukturierung von Webseiten dient. Es wird benutzt, um andere… …   Deutsch Wikipedia

  • IFrame — Élément HTML Demande de traduction HTML element → …   Wikipédia en Français

  • Iframe — Élément HTML Demande de traduction HTML element → …   Wikipédia en Français

  • элемент iframe — вложенный фрейм Элемент IFRAME (inline frame) определяет вложенный фрейм, т. е. прямоугольную область окна обозревателя для отображения другого HTML документа или иного объекта. По сравнению с элементом OBJECT он имеет меньше возможностей;… …   Справочник технического переводчика

  • HTML element — This article is about the HTML elements in general. For information on how to format Wikipedia entries, see Help:Wiki markup and Help:HTML in wikitext HTML HTML and HTML5 Dynamic HTML XHTML XHTML Mobile Profile and C HTML Canvas element Character …   Wikipedia

  • Juggalo Championship Wrestling — Pwcompanybox name=Juggalo Championship Wrestling acronym=JCW established=1999 style=Hardcore wrestling location=Detroit, Michigan founder=Shaggy 2 Dope Violent J owner=Shaggy 2 Dope Violent J parent= sister= formerly=Juggalo Championshit… …   Wikipedia

Compartir el artículo y extractos

Link directo
Do a right-click on the link above
and select “Copy Link”