Difference between revisions of "Demo:TargetFrame"

From PKC
Jump to navigation Jump to search
Line 12: Line 12:
</html>
</html>
This can also be translated into a template.
This can also be translated into a template.
{{hyperlinkTemplate
{{HyperlinkTemplate
|href=http://apple.com
|href="http://apple.com"
|displayedText=Apple Home Page
|displayedText="Apple Home Page"
|targetFrameName=_blank
|targetFrameName="_blank"
}}
}}

Revision as of 03:25, 29 March 2022

To use a separate target frame, one must use the <html> tag. A short example can be found here:

<html>
<a href="https://cnn.com" target="_blank">This is a News Webite</a>
</html>

Then, it will be displayed as follow:

<html>

<a href="https://cnn.com" target="_blank">This is a News Webite</a> </html> This can also be translated into a template. Template:HyperlinkTemplate