Results 1 to 6 of 6

Thread: Xhtml

  1. #1
    Gordy Gordy's Avatar
    Join Date
    Jul 2003
    Location
    Bristol
    Posts
    3,805
    Thanks
    63
    Thanked
    72 times in 50 posts

    Xhtml

    After stumbling across an article about some1 redesigning /. in XHTML I thought it was high time I sat down and learnt to code my sites in XHTML compliant code. I've got the basics sorted and I've used wc3's validator to check my code in XHTML 1.0 but I've not managed to find a 1.1 validator.

    Any ideas where I can find one?

    Cheers

  2. #2
    Senior Member Kezzer's Avatar
    Join Date
    Sep 2003
    Posts
    4,863
    Thanks
    12
    Thanked
    5 times in 5 posts
    http://validator.w3.org/

    i'm sure it's there

  3. #3
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    Off the top of my head I think it validates based on your doctype. So if your doctype states 1.1 then it'll be validated as such. There is no specific 1.1 validator URL

  4. #4
    Gordy Gordy's Avatar
    Join Date
    Jul 2003
    Location
    Bristol
    Posts
    3,805
    Thanks
    63
    Thanked
    72 times in 50 posts
    Quote Originally Posted by Az
    Off the top of my head I think it validates based on your doctype. So if your doctype states 1.1 then it'll be validated as such. There is no specific 1.1 validator URL

    I woke up in the middle of the night and realised that

    Dofus I am

    Any1 know the doctype thang I need for 1.1 ?

    EDIT: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> found it

    I quite like this xhtml its a bit wierd to get used to and footers are a nightmare but one the css is done its such a smaller page footprint

    The only problem I've had is that target="_blank" throws a validation error is there a way of making a link open in a new window with out this attribute?

  5. #5
    HEXUS.net Webmaster
    Join Date
    Jul 2003
    Location
    UK
    Posts
    3,108
    Thanks
    1
    Thanked
    0 times in 0 posts
    use rel="external" and include the following javascript as an include on every page

    Code:
    function externalLinks() { 
     if (!document.getElementsByTagName) return; 
     var anchors = document.getElementsByTagName("a"); 
     for (var i=0; i<anchors.length; i++) { 
       var anchor = anchors[i]; 
       if (anchor.getAttribute("href") && 
           anchor.getAttribute("rel") == "external") 
         anchor.target = "_blank"; 
     } 
    }

  6. #6
    Gordy Gordy's Avatar
    Join Date
    Jul 2003
    Location
    Bristol
    Posts
    3,805
    Thanks
    63
    Thanked
    72 times in 50 posts
    Cheers Az

    Seems like a long winded way of doing things I thought xhtml was around to cut out excess code

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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