iframe name Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:iframe

Description

The name attribute sets a name for the <iframe>.

Attribute Values

Value Description
name Specifies a name for the <iframe>

An <iframe> that act as a target for a link:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<iframe src="demo_iframe.htm" name="iframe_a">
<p>Your browser does not support iframes.</p>
</iframe><!-- w  ww  .  j av  a 2s  .  co  m-->

<a href="http://java2s.com" target="iframe_a">site</a>

</body>
</html>

Related Tutorials