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 7 of 7
  1. #1
    Junior Member
    Join Date
    Jul 2004
    Posts
    6
    Member #
    6725
    I've written my site in HTML and am now finding out I should make it compliant. But as I research how to go about this, I'm coming up with the terms XHTML and XML. Should I be converting my pages to XHTML or XML and why?

    I'm starting on a new site and this time I want it to be compliant It probably doesn't have to be particularly future-proof, it's a short term(couple of years probably) Should I just write it in one of these other scripts from the start?

    And slightly still on the topic, since I started fiddling around with putting Doctype etc at the top (I removed it cos it mucked up my paragraph headings) I've noticed that the Spanish sections of my site are rendering some of the letters strangely. I'm sure they weren't doing that before. Funny thing is they are doing it in the source document as well as in the browser.

    Thanks in anticipatiion

    Eg http://www.geocities.com/hansmatheso...lsociedad.html

  2.  

  3. #2
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748
    XHTML is the way to go if you want standards. It's very similar to HTML and it's fairly easy to convert. Check out this link for the differences: http://www.w3.org/TR/xhtml1/#diffs

  4. #3
    Senior Member mixu's Avatar
    Join Date
    Aug 2003
    Posts
    217
    Member #
    2815
    or even better, learn about it at http://www.w3schools.com/ . I just love this site ..

  5. #4
    WDF Staff Wired's Avatar
    Join Date
    Apr 2003
    Posts
    7,656
    Member #
    1234
    Liked
    137 times
    XML is something to read up though. It can do some interesting stuff.
    The Rules
    Was another WDF member's post helpful? Click the like button below the post.

    Admin at houseofhelp.com

  6. #5
    Senior Member karinne's Avatar
    Join Date
    Dec 2003
    Location
    Aylmer QC Canada
    Posts
    1,607
    Member #
    4335
    Liked
    8 times
    what they said

    concerning your language problem... it's not the doctype that's your problem (unless you've written it wrong html - xhtml) it's prbably an encoding problem.

    *added* i just found this... it might help you out - XHTML FAQ's
    [a web design portfolio - Currently NOT AVAILABLE for work | web design | Re-coding | PSD-to-HTML]
    I'm also on: virb - facebook - twitter - flickr - del.icio.us

  7. #6
    Junior Member
    Join Date
    Jul 2004
    Posts
    6
    Member #
    6725
    Quote Originally Posted by Wired
    XML is something to read up though. It can do some interesting stuff.

    Thanks for all the help.
    Looks like there aren't a lot of changes to make to change pages over to xhtml - but do you rename the actual documents as index.xhtml or whatever, or just put it at the top of the doc?

  8. #7
    Senior Member james's Avatar
    Join Date
    May 2003
    Location
    Melbourne, AUSTRALIA
    Posts
    364
    Member #
    1352
    Thanks for all the help.
    Looks like there aren't a lot of changes to make to change pages over to xhtml - but do you rename the actual documents as index.xhtml or whatever, or just put it at the top of the doc?
    No, its the doctype at the start of the document...

    Your old pages would have started with
    Code:
    <html>
    ...
    If you replace that with
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!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">
    ...you'll have yourself an XHTML 1.0 Transitional web page, which you can then validate at http://validator.w3.org . It probably won't pass the first time, but with some understanding of XHTML, you should be able to fix it.

    The first line makes it an XML document (HTML is SGML), the second defines what sort of HTML elements and properties you're allowed to use (Transitional is the most backwards compatible), and the 3rd is your <html> element with some extra properties which I don't really understand!
    James H
    Home Page · Mars Page · www.fihsf1.net (formerly www·fihs·net)


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 01:14 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com