+ Post New Thread
Results 1 to 10 of 10
Web Development Thread, Moving to XHTML in Coding and Web Development; Is it worth creating simple web sites in XHTML yet? I don't want to do anything fancy, but I use ...
  1. #1
    OverWorked's Avatar
    Join Date
    Jul 2005
    Location
    N. Yorks
    Posts
    1,003
    Thank Post
    195
    Thanked 42 Times in 34 Posts
    Rep Power
    29

    Moving to XHTML

    Is it worth creating simple web sites in XHTML yet? I don't want to do anything fancy, but I use NVu which will create in XHTML no problem.

    Does XHTML cause any problems for browsers at the moment?

    I've also notice that if I use XHTML strict with NVu, it give new pages the .xhtml extension. Does this cause any problems?

    I want to get with new technologies, but don't want the headache of being 'bleeding edge'.

    Thanks.

  2. #2

    Join Date
    Aug 2005
    Location
    Birmingham, UK
    Posts
    490
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Moving to XHTML

    i wouldnt really class xhtml as bleeding edge, its in its 6th year now and isnt majorly different from html. Mostly it just forces you to write tidy code, close all tags and use CSS properly. I would deffo look at using xhtml. As for the extension, i have never seen a site using the xhtml extension, i just save mine as .htm files.

  3. #3
    ajbritton's Avatar
    Join Date
    Jul 2005
    Location
    Wandsworth
    Posts
    1,632
    Thank Post
    23
    Thanked 75 Times in 45 Posts
    Rep Power
    33

    Re: Moving to XHTML

    For what it's worht, the W3SCHOOLS.COM website has been redone in XHTML and they seem to suggest that everyone should use it now.

  4. #4

    Join Date
    Sep 2005
    Posts
    39
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Moving to XHTML

    I wrote a small faq on XHTML, may be handy
    It is just a tidy way to code html. Splits data and structure from formatting, making it easier to update and more accessible, which is the big key word int education at the moment!

    Check it out, may be helpfull http://www.tek-tips.com/faqs.cfm?fid=3903

  5. #5
    OverWorked's Avatar
    Join Date
    Jul 2005
    Location
    N. Yorks
    Posts
    1,003
    Thank Post
    195
    Thanked 42 Times in 34 Posts
    Rep Power
    29

    Re: Moving to XHTML

    Thanks to all of you. You've put my fears at ease. XHTML it is!

    I knew XHTML was been out for a while, but thought that it still hadn't been widely adopted. I didn't want to end up with a site that only worked properly in Firefox, or something like that.

    3wschools.com is agreat website and has been my main source of info so far in css and xhtml.

    @daverage - I've been to tek-tips before, but hadn't seen your faq. It's good!

    I went on a Web design course in 1997, learned to format pages in tables with HTML 4 (pretty new at the time), and to use tabs like <u> to format the text.

    I hadn't really touched web design since then. Having just got back into it recently has been a bit of a shock. Now I'm having to learn all over again.

  6. #6

    Join Date
    Aug 2005
    Location
    Birmingham, UK
    Posts
    490
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Moving to XHTML

    If you need any advice, give me a shout OverWorked, im self taught xhtml/css (from w3schools and google).

    A site I wrote for a friend was written in xhtml (it doesnt validate past my head tag becuase i forgot to add title tags for each page before i sent it to him)

    Take a peek at the source and see how tidy it is compared to html4

  7. #7
    OverWorked's Avatar
    Join Date
    Jul 2005
    Location
    N. Yorks
    Posts
    1,003
    Thank Post
    195
    Thanked 42 Times in 34 Posts
    Rep Power
    29

    Re: Moving to XHTML

    Thanks, E1uSiV3

    XHTML Strict - that's what I want to use. None of the 'transitional' stuff.

    I'm taking the same path as you - w3schools and google. w3schools looks like a good site to start with.

  8. #8

    Join Date
    Oct 2005
    Location
    Corpus Christi Sports College
    Posts
    153
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Moving to XHTML

    To answer the original question, yes its always better to use XHTML than HTML as it should now be supported by all browsers. Using v1.0 is better than using v1.1 or greater as it will be more widely supported on the different platforms such as pdas and mobile phones.

    .XHTML shouldn't cause any problems but I always just save mine as .htm or .html but thats mainly because I would forget to include the x when hyperlinking.

    Don't think that Strict XHTML is always the answer, the more complex the site the less successful it will be. Strict doesn't allowed hyperlink targets and all sorts you would expect from basic HTML. I always write it in Transitional and then convert it to strict to run through a validator to see if its acceptable.

  9. #9
    OverWorked's Avatar
    Join Date
    Jul 2005
    Location
    N. Yorks
    Posts
    1,003
    Thank Post
    195
    Thanked 42 Times in 34 Posts
    Rep Power
    29

    Re: Moving to XHTML

    Quote Originally Posted by Pear
    Strict doesn't allowed hyperlink targets and all sorts you would expect from basic HTML.
    I was surprised at this, so had alook round and found this. I haven't tried it yet, but it looks like you can use targets with the id attribute. It's all good stuff.

  10. #10

    Join Date
    Aug 2005
    Location
    Birmingham, UK
    Posts
    490
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Moving to XHTML

    A few pointers for you overworked, when using self closing brackets, include a space, for example, use:
    Code:
     
    Instead of:
    Code:
     
    Some browser compatibility issues arise otherwise.

    Also, one that drove me nuts for ages, the dreaded[*] tag and internet explorer issue...

    Internet explorer parses a carrige return after a closed tag in a document as a line break, so the following:
    Code:
    [*]this is a list item[*]this is another list item
    will produce a gap between each list item.

    To get around this bug, move the > on the closing tag tothe next line, for example:
    Code:
    [*]this is a list item</li
    >[*]this is another list item
    This nulls the carrige return bug and still renders correctly in other browsers.

    I used this technique for the site i linked above to create the fully CSS driven menus.

    Quote Originally Posted by Pear
    Strict doesn't allowed hyperlink targets
    Yes, this is very annoying and also well documented about, a lot of people were upset when this was omitted from the xhtml standard.

SHARE:
+ Post New Thread

Similar Threads

  1. Problem with W3C XHTML Validator
    By smali in forum Web Development
    Replies: 2
    Last Post: 8th August 2007, 09:06 AM
  2. Moving moodle to IIS
    By Quackers in forum Virtual Learning Platforms
    Replies: 3
    Last Post: 27th June 2007, 01:42 PM
  3. Moving On
    By Nij.UK in forum General Chat
    Replies: 5
    Last Post: 20th March 2007, 08:28 PM
  4. Moving IIS
    By Simcfc73 in forum Windows
    Replies: 1
    Last Post: 14th July 2006, 02:21 PM
  5. Moving to a New Job
    By pshuttle in forum General Chat
    Replies: 4
    Last Post: 17th March 2006, 06:14 PM

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
  •