简体   繁体   中英

Getting error Stray end tag head

I am not sure what am I doing wrong. Is the image in the header or something else ? Tried inspecting and not able to come up with fix for the error. Help would be appreciated

    <head>
    <!-- Meta tags -->
    <meta charset="utf-8" />
    <meta name="description" content="Creating Web Applications" /> 
    <meta name="keywords" content="party equipment" />
    <meta name="author" content="Zaid Shakil" />

    <!--CSS Style File Link -->
    <link rel="stylesheet" href="styles/style.css" />

    <!-- Title of the page -->
    <title>Party Equipment</title>
    <!-- Navigation bar -->

    <nav>
        <ul>
          <li><a href="index.html" class="home">Home</a></li>
          <li><a href="product.html" class="product">Product</a></li>
          <li><a href="enquiry.html" class="enquiry">Enquiry</a></li>
          <li><a href="about.html" class="about">About</a></li>
        </ul>
    </nav>

    <img id="homepic" src="images/partyhome.png" alt="Party" />
</head>

Please go through with this, avoiding-common-html5-mistakes

<head>
 <!-- Meta tags -->
 <meta charset="utf-8" />
 <meta name="description" content="Creating Web Applications" /> 
 <meta name="keywords" content="party equipment" />
 <meta name="author" content="Zaid Shakil" />

 <!--CSS Style File Link -->
 <link rel="stylesheet" href="styles/style.css" />

 <!-- Title of the page -->
 <title>Party Equipment</title>
 <!-- Navigation bar -->
</head>

<body>
   <nav>
    <ul>
      <li><a href="index.html" class="home">Home</a></li>
      <li><a href="product.html" class="product">Product</a></li>
      <li><a href="enquiry.html" class="enquiry">Enquiry</a></li>
      <li><a href="about.html" class="about">About</a></li>
    </ul>
     </nav>

  <img id="homepic" src="images/partyhome.png" alt="Party" /> 
</body>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM