Vad är iframe

IFrame (Inline Frame) är ett HTML-dokument som är inbäddat inuti ett annat HTML-dokument på en webbplats på Internet. IFrame-element används vanligen för att infoga innehåll från en annan källa, en annons, i en webbsida. 1 iframes 2 Definition iFrame Har du någonsin sett ett dokument på en webbsida? En YouTube-video utanför Youtube? Det är en iframe. Det är ett HTML-element som låter oss bädda in innehåll från en annan webbsida i en ram, på vår webbsida, och kunna se det utan problem. En iframe är en förkortning för Inline Frame, och för en lång tid. 3 iframe example 4 Infoga en IFRAME. IFRAME (Inline Frame) är en ram som är oberoende av webbläsaren avseende storlek och placering. IFRAME placeras i ett dokument men visar innehållet från ett annat källdokument. Den sida som ska visas är alltså en annan sida som infogas i IFRAME. Om webbläsaren inte stöder IFRAME visas inget innehåll alls. 5 The HTML iframe> tag specifies an inline frame. The src attribute defines the URL of the page to embed. Always include a title attribute (for screen readers) The height and width attributes specify the size of the iframe. Use border:none; to remove the border around the iframe. 6 Nedan ser ni ett utdrag från MDN’s referenssida som förklarar iFrames syfte och funktion lite i allmänhet: The HTML Inline Frame Element (iframe>) represents a nested browsing context, effectively embedding another HTML page into the current page. 3 attribut för iFrame att ha koll på – width, height, src. 7 iframe html 8 IFrame (Inline Frame) är ett HTML-dokument som är inbäddat inuti ett annat HTML-dokument på en webbplats på Internet. 9 IFrame är ett HTML-dokument som är inbäddat inuti ett annat HTML-dokument på en webbplats på Internet. 10 An iframe, short for inline frame, is an HTML element that contains another HTML document within it. The iframe element is specified with the iframe tag. It may be placed anywhere in an HTML document, and thus anywhere on a web page. 12