<br /><br />
<a href="http://www.microsoft.com" target="main_page">Microsoft</a>
<br /><br />
<a href="http://news.bbc.co.uk/" target="main_page">BBC News</a>
To Become more comfortable - Do Online Practice
The target attribute can also take the attribute values listed in the table that follows.
Vlaue Description
_self Loads the page into the current frame.
_blank Loads a page into a new browser window.opening a new window.
_parent Loads the page into the parent window, which in the case of a single frameset is the
main browser window.
_top Loads the page into the browser window, replacing any current frames..
Inline Frames - The <iframe> Element:
You can define an inline frame with the <iframe> tag. The <iframe> tag is not used within a <frameset>
tag. Instead, it appears anywhere in your document. The <iframe> tag defines a rectangular region within
the document in which the browser displays a separate document, including scrollbars and borders.
Use the src attribute with <iframe> to specify the URL of the document that occupies the inline frame.
All of the other, optional attributes for the <iframe> tag, including name, class, frameborder, id, longdesc,
marginheight, marginwidth, name, scrolling, style, and title behave exactly like the corresponding attributes
for the <frame> tag.
Following is the example to show how to use the <iframe>. This tag is used along with <body> tag:
<body>
...other document content...
<iframe src="/html/menu.htm" width="75" height="200" align="right">
Your browser does not support inline frame s. To view this
<a href="/html/menu.htm">document</a> correctly, you'll need
a copy of Internet Explorer or the latest Netscape Navigator.
</iframe>
...subsequent document content...
</body>
The align attribute lets you control where the frame gets placed in line with the adjacent text or moved to
the edge of the document, allowing text to flow around the frame.
For inline alignment, use top, middle, or bottom as the value of this attribute. The frame is aligned with
the top, middle, or bottom of the adjacent text, respectively. To allow text to flow around the inline frame,
use the left or right values for this attribute. The frame is moved to the left or right edge of the text flow,
respectively, and the remaining content of the document is flowed around the frame. A value
of center places the inline frame in the middle of the display, with text flowing above and below.