View Poll Results: What do you use to design your web pages?

Voters
24. You may not vote on this poll
  • XHTML

    17 70.83%
  • HTML

    2 8.33%
  • Both

    4 16.67%
  • Neither

    1 4.17%
+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 27

Thread: HTML or XHTML?

  1. #1
    sclewin's Avatar
    sclewin is offline x10Hosting Member sclewin is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Ontario
    Posts
    88

    Exclamation HTML or XHTML?

    I find this topic confusing. I have read in several places that XHTML is suppose to be the future and that you should design web pages using that, but, then I notice other people saying that HTML is still the standard because it is used much more than XHTML and supported much better. To add to that is that HTML 5 is in development. If HTML is dead, why is there a new version coming out?
    Your friend, Scott

    Sent to you from a Linux computer using Kubuntu Version 8.04


    http://sgaming.org

  2. #2
    kkenny's Avatar
    kkenny is offline Lord Of The Keys kkenny is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    I REP THE BAY. (Bay Area, CA, USA)
    Posts
    1,950

    Re: HTML or XHTML?

    I don't know
    XHTML is just basically reformed html, nothing really different about it other than W3C classifies it differently and it has a couple more restrictions than normal HTML does.

    XHTML has no proprietary code such as
    Code:
    <center></center> <marquee></marquee>
    and a few other codes. XHTML suggests that you instead use
    Code:
    <div style="align:center;"></div>
    something like that, or use CSS instead of using "proprietary code"


    XHTML also requires you to end some of your codes
    like this:
    Code:
    <img src="http://forums.x10hosting.com/programming-help/xxx" />
    not this:
    [CODE]
    <img src="xxx">

    XHTML also requires every tag and attribute be lowercase
    Not acceptable:
    Code:
    <ImG sRc="xXx" />
    Acceptable
    Code:
    <img src="xXx" />
    XHTML also has some strict standards on spacing, like
    Acceptable
    Code:
    <img src="xxx" />
    Not acceptable
    Code:
    < img src = " xxx " />
    And those are the main ones I can think of.
    kkenny - retired.
    -Became a Moderator/Staff Member on 4/23/08
    -Became Senior Mod on 8/28/08
    -Became Account Manager on 10/18/08
    -Left Staff and X10 in 2009.


  3. #3
    LHVWB's Avatar
    LHVWB is offline Lord Of The Keys LHVWB is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Australia
    Posts
    1,308

    Re: HTML or XHTML?

    I must say that I prefer XHTML, but mainly because I think that it makes sense to be more restrictive in terms of what you can do with html, I follow the idea that you should use separate css documents to give your website the actual color/theme/style, the XHTML to me is just a general layout.

    Its not really that different from HTML, but its moving towards a more 'semantic' web, where you have less things defined in the html, and more in css and 'xml'. XHTML also makes it easier for machines to go through the code, because it removes those annoying mistakes that kkenny pointed out.

  4. #4
    marshian's Avatar
    marshian is offline x10 Elder marshian is an unknown quantity at this point
    Join Date
    Jan 2008
    Location
    Belgium
    Posts
    526

    Re: HTML or XHTML?

    I also prefer to use XHTML, because it forces you to keep a structure in a document. For example, the code
    Code:
    <i><b></i></b>
    Is valid HTML, while this is not allowed in XHTML.

    Also, there's nothing 'new' in XHTML compared to HTML, every tagname, etc remains the same, so any browser that knows HTML shouldn't have too much troubles to read XHTML.
    Real programmers don't document their code - if it was hard to write, it should be hard to understand.

  5. #5
    TechAsh's Avatar
    TechAsh is offline Retired TechAsh is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    UK
    Posts
    5,853

    Re: HTML or XHTML?

    I normally use HTML 4.01 Transitional but I think I could switch to XHTML without doing much re-coding because I'm always careful to close tags in the right order etc.
    Useful Links:
    Terms of Service | Server News | Buy a Domain
    Free Domains: co.cc | Dot.tk -- Free File Storage: Dropbox -- Website Monitoring: Service Uptime


    My Websites:
    Earthtime Games & TechAsh's Blog

  6. #6
    callumacrae's Avatar
    callumacrae is offline not alex mac callumacrae is just really nice
    Join Date
    Dec 2007
    Location
    Wellesbourne, England
    Posts
    5,161

    Re: HTML or XHTML?

    I use XHTML usually.

    Quote Originally Posted by kkenny View Post
    Acceptable
    Code:
    <img src="xXx" />
    You've got to have an alt in all images
    I can customise your phpBB board. Send me a PM.
    lynxphp - info, tutorials and scripts
    "A forum post should be like a skirt; long enough to cover the subject but short enough to keep things interesting."

  7. #7
    TechAsh's Avatar
    TechAsh is offline Retired TechAsh is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    UK
    Posts
    5,853

    Re: HTML or XHTML?

    *Moved to Crossfire where it belongs*
    Useful Links:
    Terms of Service | Server News | Buy a Domain
    Free Domains: co.cc | Dot.tk -- Free File Storage: Dropbox -- Website Monitoring: Service Uptime


    My Websites:
    Earthtime Games & TechAsh's Blog

  8. #8
    DeadBattery's Avatar
    DeadBattery is offline Community Support Team DeadBattery is a name known to allDeadBattery is a name known to all
    Join Date
    Mar 2008
    Location
    localhost
    Posts
    4,019

    Re: HTML or XHTML?

    I normally use HTML. The reason why is because that is what I first learned. (Out of an old book which was ancient)


  9. #9
    tnl2k7 is offline Banned tnl2k7 is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    #offtopic ;)
    Posts
    3,131

    Re: HTML or XHTML?

    XHTML is much easier to read and the newest standard. It encourages good coding practice, and results in better standards-based pages. Why not use it?

    -Luke.

  10. #10
    mattura's Avatar
    mattura is offline x10 Elder mattura is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    563

    Re: HTML or XHTML?

    xhtml is simply neat html.

    If you write neat html, you are probably pretty much in the xhtml mindset.
    ----
    Life is a game. The conception is terrible but the graphics are amazing!
    matt.elementfx.com

+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. Hybrid's HTML Lessons
    By Hybrid in forum Tutorials
    Replies: 18
    Last Post: 11-28-2009, 02:12 PM
  2. XHTML valid...
    By DecemberGuild in forum Free Hosting
    Replies: 11
    Last Post: 01-03-2007, 07:43 AM
  3. [IPB] Contiguous Board Index
    By phenetic in forum Tutorials
    Replies: 5
    Last Post: 09-18-2005, 10:31 AM
  4. What is XML!
    By wizeman in forum Tutorials
    Replies: 6
    Last Post: 08-27-2005, 12:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers