Difference between revisions of "Demo:TargetFrame"

From PKC
Jump to navigation Jump to search
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<html><H1>Hello World</H1><a href="https://www.mediawiki.org/wiki/Manual:$wgRawHtml" target="_blank">Manual:$wgRawHtml</a><html>
To use a separate target frame, one must use the '''<nowiki><html></nowiki>''' tag.
A short example can be found here:
<syntaxhighlight lang=HTML>
<html>
<a href="https://cnn.com" target="_blank">This is a News Webite</a>
</html>
</syntaxhighlight>
Then, it will be displayed as follow:
 
<html>
<a href="https://cnn.com" target="_blank">This is a News Webite</a>
</html>
=Important Notice=
The use of external frame and raw HTML code is a dangerous practice in general, and is discouraged. This implementation requires the variable [[mw:Manual:$wgRawHtml|$wgRawHTML]] in [[LocalSettings.php]] to be set to '''true
'''.

Latest revision as of 03:42, 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>

Important Notice

The use of external frame and raw HTML code is a dangerous practice in general, and is discouraged. This implementation requires the variable $wgRawHTML in LocalSettings.php to be set to true .