Html file error "local host:8080" in chrome . vscode

Question:
my html file is not running in chrome in vscode .please help me with this issue.

<html>
    <title>document</title>
    <head>
        <body>
            <p>hello world</p>
        </body>
    </head>
</html>

Welcome to the forums, @boygood98!
The body element should not be within the head element. Here is the revised code:

<html>
  <head>
    <title>document</title>
  </head>
  <body>
    <p>hello world</p>
  </body>
</html>
3 Likes