Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Junior Member magicforce56's Avatar
    Join Date
    Nov 2011
    Posts
    3
    Member #
    29895
    I have roughly 13 W3 validation errors, i'm assuming they are all because of the same problem, which I am clueless about at this point. My first two errors are as followed:

    Validation Output: 13 Errors

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

    <html>

    ?

    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:
    <html xmlns="http://www.w3.org/1999/xhtml">
    Error Line 3, Column 19: document type does not allow element "div" here

    <div id="wrapper">

    ?

    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).
    __________________________________________________ ___________________________________
    As for my webpage itself, my text goes below my container div(the lighter gray with border..which it shouldn't go past..?) It even expands past my wrapper that is set at 100% height and width.
    Code:
    /*----Wrapper contains everything in the webpage*/
    #wrapper
    {
    position:absolute;
    background-color:#333333;
    width:100%;
    height:100%;
    padding-top:0px;
    margin-left:-10px;
    margin-top:-10px;
    
    /*--possibly junk-- margin-left:auto;*/
    /*--possibly junk-- margin-right:auto;*/
    float:left;
    }
    
    #container
    {
    background-color:#666666;
    width:90%;
    height:80%;
    left:5%;
    position:absolute;
    float:left;
    border-style:outset;
    border-width:5px;
    }
    Attached Images Attached Images

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,483
    Member #
    425
    Liked
    2783 times
    Usually that means you just have an <html> tag. You need to indicate of the XML namespaces you're using.

    Upload your page somewhere and link to it. You'll get more/better help that way. In this case, you'll have to put your link so a mod is giving you permission.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Junior Member magicforce56's Avatar
    Join Date
    Nov 2011
    Posts
    3
    Member #
    29895
    Quote Originally Posted by TheGAME1264, post: 224057
    Usually that means you just have an <html> tag. You need to indicate of the XML namespaces you're using.

    Upload your page somewhere and link to it. You'll get more/better help that way. In this case, you'll have to put your link so a mod is giving you permission.
    I'm a bit confused by indicating XML that you said I need to do..
    On the other hand, the link is http://web.vtc.edu/users/emb09130/PaintballProject/ (The pictures most likely won't show up here)

  5. #4
    Junior Member
    Join Date
    Nov 2011
    Posts
    7
    Member #
    29877
    Hi,

    Use all the value in pixel only. You will get an effect

  6. #5
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    It's as GAME said. you're declaring XHTML as your DOCTYPE, which is built on XML syntax, but you don't declare an XML namespace in your <html> tag. Just as the message you received from the validator indicates, replace <html> with <html xmlns="http://www.w3.org/1999/xhtml">

    One super simple way to never have to worry about this is to declare <!DOCTYPE html> and leave it at that. It's the DOCTYPE for HTML5, which accepts XHTML syntax, and doesn't require you to use HTML5 specific tags if you don't want to.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 11:19 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com