Iframe in HTML

In HTML, iframe is used to display a web page within another website.

Iframe syntax

iframe HTML is defined by tag

The src attribute is used to determine the URL (web address) of the page within the inline frame.

Iframe - set height and width

The height and width attributes are used to determine the size of an iframe. The default attribute value is pixek but can be used as a percentage (eg 80%).

Or you can use CSS to set the height and width for iframe.

Iframe - remove borders

By default, iframe will have a border around it. To remove this border, add style properties and use the CSS property as border.

With CSS, you can also change the size, style, and color of iframe borders.

Iframe - destination for the path

Iframe can be used as the target frame for the path. The target attribute of the link must refer to the name attribute of the iframe.


TipsMake.com

Previous post: id attribute in HTML

The following article: JavasScript in HTML

Update 25 May 2019
Category

System

Mac OS X

Hardware

Game

Tech info

Technology

Science

Life

Application

Electric

Program

Mobile