Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts

    XHTML Validation

    Hi im new to the forums here and feel quite small between all you experts. Just wondering if someone can help me because im quite new to websites myself. Below is the link for the validation.

    http://validator.w3.org/check?uri=ht...tomatically%29

    And before you say, Yes i have read the mini descriptions but still no help to me... If Anyone could help me with any any of the faults i will be greatfull. Thanks

  • #2
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    This is a html issue, and should be posted in the html/css forum.
    However, to get a insight on what these error messages mean, you need to understand the differences from HTML. Everything must be lowercase, all the tags must be closed etc (but thats the same in html).

    Take a look at http://www.w3schools.com and http://www.w3.org/TR/xhtml1/ for a better look on XHTML.

    Just to let you know that you can only use "id" once for that specific class, as it is a unique id. To use the same class more than once in the same document you have to use class = i.e instead of <div id="whatever">, use <div class="whatever"> if you are going to use the same class more than once.

    Also, everything has to be lowercase, and stuff like font-family etc needs to be in a actual css document rather than in the html itself. Put the font size inside your p class in your css stylesheet etc..for text rather than the old deprecated <font size="xxxx"> element. i.e. <p class="whatever">blah blah</p>

    btw, Welcome to CodingForums

    ~Jamie.

    ----------------------------

    (From the moderator: XHTML validation questions are welcome here. XHTML is almost always the first XML language anyone learns.)
    Last edited by Alex Vincent; 03-29-2005 at 04:23 PM.

  • #3
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    XML
    Talk about XML and related technologies such as XSL, XHTML here.
    that is what it says under the description for this forum may be out of place I dunno.

    Anyways, when it says height doesn't exist well technically it doesn't, you need to use css to declare the heights, and widths, and in place of align you need to use vertical-align in css which only works on text, same goes with the font tags, they shouldn't be used in xhtml

  • #4
    Regular Coder
    Join Date
    May 2004
    Location
    Berkeley, California Age: 15
    Posts
    398
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well, i wouldn't be too harsh. XHTML is XML...and most of his problems would only occur in XHTML, so lax off a little bit.. I think its fine.

    If you know how to read those error messages, it helps...
    I've listed the error message, and then how to fix it beneath it (on some), then an explanation

    First error:

    <script language="JavaScript" type="text/JavaScript">
    <script type="text/JavaScript">

    you don't need language in xhtml...type will do fine

    Second error:

    <td height="136" colspan="3" valign="top"><img src="Images/Banner.gif" alt="...

    This can be a bit tricky...You need to declare the height and the valign in your css stylesheets...its called separation of presentation and content...

    Third error and Fourth error:

    Same idea as the second error.

    [b]Error 5,6,7[b]

    font is not an element in XHTML...use stylesheets to create bigger text.

    Error 8, 9

    <div id="Layer1" style="position:absolute; left:19px; top:185px; width:166
    <div class="Layer1" style="position:absolute; left:19px; top:185px; width:166

    You can't declare the same ID twice. If you have a two or more elements that you want to style the same, use class. Also, if you do use classes, you shouldn't be using inline style="" attributes...

    Hope this helps. If you have any more questions, write back
    Jalenack.com .:. YWDA Founder .:. Rounded Corners Maker 1.1! .:. My Blog
    The hardest thing about teaching is not knowing the right answers, but knowing the right questions - Elisabeth Klein
    Pretty buttons does not a great website make.

  • #5
    New Coder
    Join Date
    Mar 2005
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts
    HI guys thanks for the help :d. Can someone show me an example of XHTML and HTML so i can see the difference please? Sorry if i miss posted this, But when i created the page in dreamweaver it gave me the option of creating an XHTML page so i assumed the page would then be XHTML. Silly me.

  • #6
    New Coder
    Join Date
    Mar 2005
    Posts
    60
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi. Have made a new topic in the CSS section about the height, valign.... Completley confused about how to add this into the stylesheet! Please check it out and help me! Thanks

  • #7
    Regular Coder
    Join Date
    Mar 2005
    Location
    D0u$h!t3 k4?
    Posts
    512
    Thanks
    2
    Thanked 5 Times in 5 Posts
    XHTML is just HTML following the rules of XML (along with removing presentational elements and attributes that were in HTML).

  • #8
    Senior Coder
    Join Date
    Apr 2003
    Location
    San Francisco, CA
    Posts
    2,469
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do not cross-post, we will delete your previous post shortly.

    ...and this is the right place -- XHTML is fine in the XML forum, as it's the best place. We tend to overlook XHTML questions in the HTML forum, as typically users send it as text/html anyhow, or dynamically swap out.
    Last edited by bradyj; 03-29-2005 at 07:06 PM.
    // Art is what you can get away with. <-- Andy Warhol
    ...:.:::: bradyjfrey.com : htmldog : ::::.:...

  • #9
    Regular Coder
    Join Date
    Mar 2005
    Location
    D0u$h!t3 k4?
    Posts
    512
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Okay, I saw 3 errors (2 of the original 5 are redundant).

    Error 1: You need to add a "/" to the end of the tag (<br />)
    Error 2: Just tells where error 1 started and therefore is redundant.
    Error 3: Same as error 1 except on an img element (<img ... />)
    Error 4: Just tells where error 3 started and therefore is redundant.
    Error 5: Delete the tag.

    Edit: For future problem-solving, you should turn on the "Show Source" option when validating. This way, you have a more visual idea of where in your file the problem is. Notice that the errors generated have line numbers. Turn the "Show Source" option on and you can scroll down past the errors to the appropriate line number (or click on the line numbers since they become hyperlinks to the proper lines in the source).
    Last edited by rpgfan3233; 03-30-2005 at 03:11 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •