11 replies [Last post]
aayisha19
aayisha19's picture
Offline
newbie
united state
Last seen: 7 years 28 weeks ago
united state
Timezone: GMT+5.5
Joined: 2012-10-29
Posts: 3
Points: 5

what is basic difference betwwn html or xhtml

Tags:
gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 21 hours 41 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9759
Points: 3841

Syntax

In theory, a lot. Since MSFT chose for so long to not support xhtml, it's effectively dead and development has ended. In practice, the difference is syntax. All tags in xhtml must be closed, where in html, many closing tags are optional. There are other less obvious diffs, but that's the main one.

There are no doubt other important technical differences, but in a pragmatic sense only the syntax is left.

Many developers took to xhtml thinking it was the more advanced of the two. Because of MSFT, it's not. Neither is better than the other. I use the xhtml syntax out of habit; I was admin for an intranet that made use of its xml features combined with the ease of development of html. All my tools are configured for xhtml, and there is no compelling reason to change. :shrug:

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 21 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Spam Attack! notice how your

Spam Attack! notice how your beloved US of A has become one unified super state and shifted its self to warmer waters due east of Europe.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 21 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Your accounts history darling

Your accounts history darling for taking the forum in vein three times. and yes I had noted your signature links but you're not getting to that magic number required.

And further you ought to take note that all links are rel="nofollow" that means no link juice from the SEO overload Google and we will certainly not click them so it's really a pointless exercise *sigh*

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Tyssen
Tyssen's picture
Offline
Moderator
Brisbane
Last seen: 5 years 33 weeks ago
Brisbane
Timezone: GMT+10
Joined: 2004-05-01
Posts: 8201
Points: 1386

But to answer the original question

The most basic difference is that XHTML is dead and HTML is not.

How to get help
Post a link. If you can't post a link, jsFiddle it.
My blog | My older articles | CSS Reference

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 21 hours 41 min ago
Dallas
Timezone: GMT-5
Joined: 2004-06-25
Posts: 9759
Points: 3841

Tyssen wrote: The most basic

Tyssen wrote:

The most basic difference is that XHTML is dead and HTML is not.

Laughing out loud

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 21 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Basic Was an early simplified

Basic Was an early simplified programming language designed for ease of entry for people new to programming, later it evolved into Qbasic

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

saniya19
saniya19's picture
Offline
newbie
united state
Last seen: 7 years 25 weeks ago
united state
Timezone: GMT+5.5
Joined: 2012-10-23
Posts: 2
Points: 2

thnxx friend's for rply this

1.HTML was designed to display data with focus on how data looks while XML was designed to be a software and hardware independent tool used to transport and store data, with focus on what data is.

2.HTML is a markup language itself while XML provides a framework for defining markup languages.

3.HTML is a presentation language while XML is neither a programming language nor a presentation language.

4.HTML is case insensitive while XML is case sensitive.

5.HTML is used for designing a web-page to be rendered on the client side while XML is used basically to transport data between the application and the database.

6.HTML has it own predefined tags while what makes XML flexible is that custom tags can be defined and the tags are invented by the author of the XML document.

7.HTML is not strict if the user does not use the closing tags but XML makes it mandatory for the user the close each tag that has been used.

8.HTML does not preserve white space while XML does.

9.HTML is about displaying data,hence static but XML is about carrying information,hence dynamic.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 21 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Honeytrap?

Puzzled Honeytrap?

@sanyia, from the data we are able to see on you it's clear you are one and the same as the original poster who had their account suspended, please don't post again unless you have something genuine to offer the forum

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 23 weeks 5 days ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

saniya19 wrote: 1.HTML was

saniya19 wrote:

1.HTML was designed to display data with focus on how data looks

Just want to point out in case the unwary be fooled, that this is a falsehood. HTML was designed to mark up the meaning of text without regard to how it looks.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

saniya19
saniya19's picture
Offline
newbie
united state
Last seen: 7 years 25 weeks ago
united state
Timezone: GMT+5.5
Joined: 2012-10-23
Posts: 2
Points: 2

XHTML is more choosy than

XHTML is more choosy than HTML—there are some elements that absolutely must appear in the XHTML markup, but which may be omitted if you’re using HTML 4 and earlier versions. These elements include the html, head, and body elements (although why you’d want to omit any of them is a mystery to me). In addition, every element you use in XHTML must have both an opening and closing tag (for example, you’d write <p>This is a paragraph</p> in XHTML, but <p>This is all you need in HTML, as no end tag is required).

//mod edit: Please set off your html source with [code][/code] bbcode tags. See the posting guidelines. Fixed ~gt

flyingcolournet
flyingcolournet's picture
Offline
newbie
Dubai
Last seen: 7 years 22 weeks ago
Dubai
Timezone: GMT+4
Joined: 2012-12-30
Posts: 2
Points: 2

Thanks for the help.. Thanks

Thanks for the help.. Thanks a lot..
Link removed - links are a privilege, once you have helped out on the forum for a while you will get those signature links you've realised aren't appearing yet. However make pointless posts of little content like this or the other today and your ccount will be marked as a spammer Smile