x10Hosting Forums

Corporate Free Hosting for the Masses.



Register

View Poll Results: What do you use to design your web pages?
XHTML 17 70.83%
HTML 2 8.33%
Both 4 16.67%
Neither 1 4.17%
Voters: 24. You may not vote on this poll

Reply
 
LinkBack Thread Tools Display Modes
x10Hosting Member

sclewin's Avatar

Join Date: Sep 2007
Posts: 88
Credits: 1,794
sclewin is on a distinguished road
Location: Ontario

Quote  
07-22-2008, 11:51 PM
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
Reply With Quote
sclewin is offlineReport Post
yadadamean

kkenny's Avatar

Join Date: Feb 2008
Posts: 1,624
Credits: 6,804
kkenny has a brilliant future
Location: I REP THE BAY. (Bay Area, CA, USA)

Send a message via MSN to kkenny
Quote  
07-23-2008, 01:07 AM
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.
Reply With Quote
kkenny is offlineReport Post
Lord Of The Keys

LHVWB's Avatar

Join Date: Jan 2008
Posts: 1,280
Credits: 9,230
LHVWB is a jewel in the rough
Location: Australia

Send a message via MSN to LHVWB
Quote  
07-23-2008, 01:51 AM
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.
Reply With Quote
LHVWB is offlineReport Post
x10 Lieutenant

marshian's Avatar

Join Date: Jan 2008
Posts: 392
Credits: 4,983
marshian is a glorious beacon of light
Location: Belgium

Send a message via MSN to marshian
Quote  
07-23-2008, 06:32 AM
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.
__________________
If this post was helpful, click on the or donate me credits ^^
Reply With Quote
marshian is offlineReport Post
Senior Account Manager

TechAsh's Avatar

Join Date: Oct 2007
Posts: 5,235
Credits: 22,299
TechAsh has a reputation beyond repute
Location: UK

Quote  
07-23-2008, 06:44 AM
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.
__________________
My Website - Earthtime Games is worth
Reply With Quote
TechAsh is offlineReport Post
x10 Elder

Join Date: Dec 2007
Posts: 529
Credits: 6,049
Alex Mac is just really nice
Location: Wellesbourne, England

Send a message via ICQ to Alex Mac Send a message via AIM to Alex Mac Send a message via MSN to Alex Mac Send a message via Yahoo to Alex Mac
Quote  
07-23-2008, 06:53 AM
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
__________________
Post on my forum: 1000 credits



Reply With Quote
Alex Mac is offlineReport Post
Senior Account Manager

TechAsh's Avatar

Join Date: Oct 2007
Posts: 5,235
Credits: 22,299
TechAsh has a reputation beyond repute
Location: UK

Quote  
07-24-2008, 05:26 AM
Re: HTML or XHTML?

*Moved to Crossfire where it belongs*
__________________
My Website - Earthtime Games is worth
Reply With Quote
TechAsh is offlineReport Post
Retired

DeadBattery's Avatar

Join Date: Mar 2008
Posts: 1,894
Credits: 14,453
DeadBattery is a glorious beacon of light
Location: localhost

Send a message via AIM to DeadBattery Send a message via MSN to DeadBattery
Quote  
07-25-2008, 04:22 PM
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)
__________________
Do not PM me for hosting support.
Use the Hosting Support forums instead.
Thank You


Useful Links:
Server Status | Terms of Service | x10 Commandments | Inserting Ads | Unsuspend Your Account

My Sites:
Your PTC Guide | PrimateTech

Sites I Work At:
x10Hosting | SohailTech

If you found this post helpful, please click on +REP.

Reply With Quote
DeadBattery is offlineReport Post
x10 Spammer

tnl2k7's Avatar

Join Date: Nov 2007
Posts: 3,139
Credits: 14,273
tnl2k7 is a glorious beacon of light
Location: #offtopic ;)

Quote  
07-25-2008, 04:39 PM
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.
__________________
No longer staff as of 28th November 2008
Just Discuss - forums about everything
Reply With Quote
tnl2k7 is offlineReport Post
x10 Lieutenant

Join Date: Oct 2007
Posts: 438
Credits: 4,201
mattura is just really nice
Quote  
07-25-2008, 04:43 PM
Re: HTML or XHTML?

xhtml is simply neat html.

If you write neat html, you are probably pretty much in the xhtml mindset.
__________________
----
Please donate credits if you had a really good reply from me! Rep is also appreciated. Thanks
matt.elementfx.com
Reply With Quote
mattura is offlineReport Post
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hybrid's HTML Lessons Hybrid Tutorials 16 12-21-2007 02:08 PM
XHTML valid... DecemberGuild Free Hosting 11 01-03-2007 08:43 AM
[IPB] Contiguous Board Index phenetic Tutorials 5 09-18-2005 11:31 AM
What is XML! wizeman Tutorials 6 08-27-2005 01:05 PM
[PHP] PHP and interacting with HTML forms Bryon Tutorials 4 08-02-2005 01:45 PM


All times are GMT -5. The time now is 10:12 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

Remortgages | Western Union Locations | Mortgages | Myspace Codes | Credit Cards