JavaScript JavaScript Basics (Retired) Introducing JavaScript Your First JavaScript Program

how can i write this word thus "wellcome to my site"

about that question

index.html
<!DOCTYPE HTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
</head>

<body>
</body>

  <document.write>
    //("<hl>wellcome to my site</hl>");

</script>

</html>

1 Answer

Use the document.write function.

document.write("<h1>Welcome to my site</h1>");