HTML Target attribute
The TARGET attribute can be used in a number of HTML tags
-
- TARGET in an A tag.
- This is very straightforward. The anchor tag normally specifies a link
to be loaded when the active item is clicked on, adding the TARGET
attribute to the anchor tag forces the load of that link into the
targeted window. Example:
<A HREF="url" TARGET="window_name">Targeted Anchor</A>
-
- TARGET in the BASE tag.
- This is used when you want all (or most) of the links in a document to
be targeted to the same window. In this case the TARGET attribute
establishes a default window_name that all links in this document
will be targeted to. This default is of course overridden by specific
instances of the TARGET attribute in individual anchor tags.
Example:
<BASE TARGET="window_name">
previous slide |
next slide
Return to Beginning of Presentation
Return to Software Development Library