What's the difference between HTML and XHTML ?

Author Topic: What's the difference between HTML and XHTML ?  (Read 5973 times)

Offline ak47Topic starter

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 1
  • Posts: 34
  • Karma: 2
What's the difference between HTML and XHTML ?
« on: 05-17-2010, 09:50:17 »
Hi guys,

From the looks of it both HTML and XHTML are the same thing, so what's the difference between the two ?   :o


Offline Seofinder

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 1
  • Posts: 53
  • Karma: 2
Re: What's the difference between HTML and XHTML ?
« Reply #1 on: 05-17-2010, 14:46:51 »
XHTML is xml compatible. So it is easier to parse and debug xhtml.

Offline Charlesth

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 3
  • Posts: 53
  • Karma: 3
  • Gender: Male
Re: What's the difference between HTML and XHTML ?
« Reply #2 on: 07-24-2012, 08:41:44 »
HTML is stand for Hyper Text Markup Language and it is use to create Web pages while XHTML is stand for Extensible Hyper Text Markup Language is application of XML language and develop version of HTML.
In XHTML xml syntax is more expressive than HTML and HTML is using SGML syntax.
In XHTML java Script and CSS is apply bit differently due to case sensitivity while Java Script and CSS both are perform well in HTML.

Offline Paulagary

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 4
  • Karma: 0
  • Gender: Female
Re: What's the difference between HTML and XHTML ?
« Reply #3 on: 11-06-2012, 01:54:22 »
HTML is a Hypertext Markup Language. XHTML is an Extensible Hypertext Markup Language.
HTML is displaying information while XHTML is describing the information.
XHTML elements must in lowercase and properly nested. In XHTML attribute names must be in lowercase and must be quoted.
In XHTML all tags must be closed but it is not necessary in HTML.
newbielink:http://www.esparkinfo.com/services/web-design/small-business-web-design.html [nonactive] | newbielink:http://www.esparkinfo.com/ [nonactive]

Offline littonbarney

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 1
  • Posts: 43
  • Karma: 0
  • Gender: Male
  • life is all about chasing your dreams.
Re: What's the difference between HTML and XHTML ?
« Reply #4 on: 02-25-2013, 03:21:40 »
HTML is used to displaying information  and XHTML is used to describing the information. HTML is Static web page and XHTML is dynamic web page. HTML is design to display a data and XHTML is design to describe a data.  XHTML elements must be properly nested, it must always be closed, it must be in lowercase and documents must have one root element but in HTML it is not necessary HTML will run if we forget to close the tags. These are manly different between XHTML and HTML.     


Offline paulstrahann

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 26
  • Karma: 0
  • Gender: Male
    • http://formlogix.com/
Re: What's the difference between HTML and XHTML ?
« Reply #5 on: 03-11-2013, 23:13:15 »
HTML is usually depending on the SGML. Which indicates you can eliminate some labels if need occurs. However, XHTML is XML based.  XML does not allow tag elimination. With HTML, you can use the functions minimization choice. This is not allowed in XHTML.





Offline iamedward79

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 1
  • Karma: 0
Re: What's the difference between HTML and XHTML ?
« Reply #6 on: 12-17-2014, 22:49:07 »
HTML (Hypertext Markup Language) it is used to create static pages using simple markup tags tables, creates divisions, gives a heading message and actually outputs text.

XHTML (Extensible Hypertext Markup Language) it is the extended form of HTML. Except it has a cleaner syntax. XHTML uses the same tags as HTML, so people who know HTML know messy XHTML. New rules apply in XHTML, such as tags always needing to be ended tags.

----------------
newbielink:http://www.globalvincitore.com/ [nonactive]

Offline MarcoLeitner

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 5
  • Posts: 33
  • Karma: 0
  • Gender: Male
    • http://www.techiring.com
Re: What's the difference between HTML and XHTML ?
« Reply #7 on: 06-12-2015, 05:55:50 »
1. HTML or hypertext markup language is the main markup language for creating webpages and other information that can be displayed in a web browser. where as XHTML or extensible hypertext markup language is a family of markup language that extends version of language in which the webpage is written.

2. Html files have the extension .html,.htm where as Xhtml files have the extension .xml,.xhtml.'

3.Html have the internet media type of text/html where as Xhtml have the internet media type of application/xhtml+ xml.

4.Html is proposed by Tim Berners Lee in 1987 while origin of Xhtml is by world wide consortium  recommendation in 2000.

Offline SanviMalhotra

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 5
  • Posts: 57
  • Karma: 0
  • Gender: Female
    • Best E-commerce Platform in India
Re: What's the difference between HTML and XHTML ?
« Reply #8 on: 08-18-2015, 00:32:10 »
1. Html stands for HyperText Markup Language where as XHTML stands for Extensible HyperText Markup Language.
2. Html support Internet Media type is text/html where as XTML support application/xhtml+xml.
3. HTML has Document file format where as XHTML has Markup language.


Offline Origiin

  • Trade Count: (0)
  • Newbie
  • *
  • Thank You 0
  • Posts: 4
  • Karma: 0
Re: What's the difference between HTML and XHTML ?
« Reply #9 on: 12-01-2015, 05:03:35 »
What's the difference between HTML and XHTML ?
1.All elements must have a start tag.
2.Tags and attributes are case sensitive, typically lowercase.
3.Attribute values must be enclosed in quotes.
4.Special characters must be escaped using character entities.
5.Empty attributes are forbidden

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
5090 Views
Last post 05-01-2017, 04:16:27
by michral86
19 Replies
8740 Views
Last post 07-16-2014, 02:57:39
by sumoncps
19 Replies
5664 Views
Last post 09-07-2016, 23:49:44
by rajdeep01
0 Replies
1130 Views
Last post 06-29-2014, 23:21:45
by rozepeter15
1 Replies
874 Views
Last post 04-26-2017, 05:33:11
by michral86