how to replace in HTML code example

Example 1: html redirect

<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="0; url=http://example.com">
        <script type="text/javascript">
            window.location.href = "http://example.com"
        </script>
        <title>Page Redirection</title>
    </head>
    <body>
        <!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
        If you are not redirected automatically, follow this <a href='http://example.com'>link to example</a>.
    </body>
</html>

Example 2: how to embed applet in html

<APPLET CODE=AppletButton.class CODEBASE=example WIDTH=350 HEIGHT=60>
<PARAM NAME=windowType VALUE=BorderWindow>
<PARAM NAME=windowText VALUE="BorderLayout">
<PARAM NAME=buttonText VALUE="Click here to see a BorderLayout in action">
<HR>
<EM>
Your browser can't run 1.0 Java applets,
so here's a picture of the window the program brings up:</em>
<P>
<IMG SRC=images/BorderEx1.gif WIDTH=302 HEIGHT=138>
<HR>
</APPLET>