Learn Simpli

Free Online Tutorial For Programmers, Contains a Solution For Question in Programming. Quizzes and Practice / Company / Test interview Questions.

HTML Iframes: An iframe is used to display a web page within a web page.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<iframe src="http://www.nswebsters.com/"></iframe>
<iframe src="http://www.nswebsters.com/"></iframe>
<iframe src="http://www.nswebsters.com/"></iframe>

Iframe – Set Height and Width: Use the height and width attributes to specify the size of the frame.

The height and width are specified in pixels by default

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<iframe src="http://www.nswebsters.com/" height="200" width="300"></iframe>
<iframe src="http://www.nswebsters.com/" height="200" width="300"></iframe>
<iframe src="http://www.nswebsters.com/" height="200" width="300"></iframe>

Iframe – Remove the Border: By default, an iframe has a border around it.

To remove the border, add the style attribute and use the CSS border property

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<iframe src="http://www.nswebsters.com/" style="border:none;"></iframe>
<iframe src="http://www.nswebsters.com/" style="border:none;"></iframe>
<iframe src="http://www.nswebsters.com/" style="border:none;"></iframe>

 

One thought on “HTML IFRAMES

Comments are closed.