HTML TAGS IN JAVASCRIPT

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>JavaScript</title>
    <script>
        document.write("Hello World <br><br>");     
        document.write("<i><b>Hello from Hamza Khan Lodhi<b></i>");
    </script>
</head>
<body>
    <h1>Hamza Khan Lodhi</h1>
</body>
</html>

Example