Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7077093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:22:48+00:00 2026-05-28T06:22:48+00:00

For a piece of homework, I cannot get this site to validate and I

  • 0

For a piece of homework, I cannot get this site to validate and I am not sure why? Here is the html:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <html>
    <head>
    <!--I am using TextWrangler to do my html css editing on my Mac-->
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <link rel="stylesheet" type="text/css" href="style.css" />
    <title>
    KG Doors
    </title>
    </head>
    <body>
<div class="wrapper">  

<div class="masthead">
    <a href="http://www.notimefortime.com/index.thml"><img src="logo.jpeg"  alt="kgdoors" height="150"width="304"> </a>
</div><!--end the masthead div -->
<div id="nav-wrapper">
    <ul id="nav">
        <li><a href="index.html">Home</a></li>
        <li><a href="about.html">Services</a></li>
        <li><a href="contact.html">Contact</a></li>
    </ul>
</div><--end nav wrappe-->
<div class="body">
    <h1>Proudly Serving Chicago and Suburbs</h1>

</div><!--end the body div -->
<div class="footer">
    <h4>
        <br/>Educational site for DePaul University. 
        <br/><a href="http://www.kgdoors.com/">KG Doors</a>
    </h4>
</div><!--end the footer div -->

</div><!--end the wrapper div -->

    </body>
    </html>

Validation Output: 6 Errors

Line 4, Column 6: document type does not allow element “html” here

✉
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements — such as a “style” element in the “body” section instead of inside “head” — or two elements that overlap (which is not allowed).

One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML’s rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML’s “self-closing” tags for “meta” and “link” in the “head” section of a HTML document may cause the parser to infer the end of the “head” section and the beginning of the “body” section (where “link” and “meta” are not allowed; hence the reported error).

Line 4, Column 1: Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml

✉
Many Document Types based on XML need a mandatory xmlns attribute on the root element. For example, the root element for XHTML might look like:

Line 7, Column 68: end tag for “meta” omitted, but OMITTAG NO was specified

✉
You may have neglected to close an element, or perhaps you meant to “self-close” an element, that is, ending it with “/>” instead of “>”.

Line 7, Column 2: start tag was here

Line 17, Column 114: end tag for “img” omitted, but OMITTAG NO was specified
…om/index.thml”>
✉
You may have neglected to close an element, or perhaps you meant to “self-close” an element, that is, ending it with “/>” instead of “>”.

Line 17, Column 55: start tag was here
…p://www.notimefortime.com/index.thml”><–end nav wrappe–>
✉
This message may appear in several cases:

You tried to include the “<” character in your page: you should escape it as “<”
You used an unescaped ampersand “&”: this may be valid in some contexts, but it is recommended to use “&”, which is always safe.
Another possibility is that you forgot to close quotes in a previous tag.
Line 40, Column 8: “html” not finished but document ended

✉
Line 40, Column 8: end tag for “html” omitted, but OMITTAG NO was specified

✉
You may have neglected to close an element, or perhaps you meant to “self-close” an element, that is, ending it with “/>” instead of “>”.

Line 2, Column 1: start tag was here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:22:49+00:00Added an answer on May 28, 2026 at 6:22 am
    1. Remove the extra <html>
    2. Replace <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> with <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    3. In line </div><--end nav wrappe-->, an ! is missing
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This piece of code used to work in MVC 1 but it does not
This piece of valid json (it has been generated using php's json_encode): {html:form is
this piece of code is not something unknown to JS developers function get_counter() {
I post this here as a last resort. I'm completely stuck and do not
This is a piece of code I've written for a homework. It seems to
First of all: this is not a homework assignment, it's for a hobby project
Following piece of code returning following error not sure where is the problem, Exception
I'm working on a piece of homework and I want to send a FILE
a piece of code here jmp_buf mark; int Sub_Func() { int be_modify, jmpret; be_modify
This piece of code compiles and runs as expected on GCC 3.x and 4.x:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.