Difference between HTML and XHTML

Asked By 20 points N/A Posted on -
qa-featured

Good evening techyv!

Im planning to study web programming and Im planning to start off with the basics..

They said that before starting to learn php and css, I should have a basic knowledge on HTML..

After searching this language, I found another one called XHTML..

What's the difference between these two and which is easier to learn?

SHARE
Best Answer by Virgitha
Answered By 0 points N/A #101081

Difference between HTML and XHTML

qa-featured

Hi,

Hyper Text Markup Language is abbreviated as HTML. It uses markup tabs to describe a web site or web page. Actually this is not a programming language but markup language. For your better information the authority of World Wide Web (WWW) is vested upon World Wide Web Consortium (W3C). The most important web standard is HTML, CSS and XML. Revised or developed version of HTML is XHTML (Extensible Hyper Text Markup Language). As a developed version of HTML, XHTML covers more standard features and your learning should be perfect. Both HTML and XHTML are easy to learn if you want to learn.      

I hope you understand it.

Thanks

Best Answer
Best Answer
Answered By 0 points N/A #101082

Difference between HTML and XHTML

qa-featured

XHTML is a new, improved version of HTML based on eXtensible Markup Language (XML). XHTML (eXtensible Hyper Text Markup Language)  is the strict and stable version of HTML.

The original formulation of HTML has some irregularities that can cause heartburn for software that reads HTML documents. XHTML, on the other hand, uses an extremely regular and predictable syntax tha’s easier for software.

Both HTML and XHTML is similar because XHTML is the  descendant  of HTML with additional feature to meet XML standart. XHTML can be used for non-computer application, like in mobile phone application. In simple way, XHTML is the new generation of HTML.

The basic difference between HTML and XHTML are :

1.       In XHTML all tags and elements must properly nested

2.       It is mandatory that all opening tag must have closure tag.

3.       All tag in XHTML written in lowercase, which is not mandatory in HTML

4.       XHTML documents must “well-formed”, means that all elements in XHTML must have 1 root element

5.       Attributes element XHTML should written inside single or double quotation mark

Answered By 590495 points N/A #323214

Difference between HTML and XHTML

qa-featured

Between HTML and XHTML, HTML is the oldest and original version. The first ever version of HTML is HTML 1.0 published in 1991 but HTML 2.0 was the first standard version published in 1995. “HTML” stands for “Hyper Text Markup Language” and is used for designing web pages. This web programming language is a combination of Hypertext and Markup language.

Hypertext defines the link or URL between the web pages and the Markup language is for defining the text document within the tag that defines the structure of web pages. The XHTML, on the other hand, is the reformulation of HTML 4.0 as an application of the XML or Extensible Markup Language. “XHTML” stands for “Extensible Hypertext Markup Language”.

In XHTML, every HTML 4 markup element and attribute will continue to be supported. You could think of XHTML as HTML5 except that it is called XHTML 1.0. The following lists the versions and the year when they were published:

  • HTML 1.0 – 1991
  • HTML 2.0 – 1995
  • HTML 3.2 – 1997
  • HTML 4.01 – 1999
  • XHTML – 2000
  • HTML5 – 2014

Related Questions