If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

What's the difference between HTML and XHTML ?

Started by ak47, 05-17-2010, 10:50:17

Previous topic - Next topic

ak47Topic starter

Hi guys,

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


Seofinder

#1
HTML (Hypertext Markup Language) and XHTML (Extensible Hypertext Markup Language) are both markup languages used for creating web pages. While they share many similarities, there are a few key differences between them.

The main difference lies in their syntax and parsing rules. HTML has a less strict syntax and is forgiving of errors, allowing dоcuments with incomplete tags or other mistakes to still be rendered by web browsers. On the other hand, XHTML follows stricter XML rules and requires well-formed and properly structured dоcuments. This means that XHTML dоcuments must have all tags nested correctly and attributes quoted.

Another difference is that XHTML is seen as an extension of XML, while HTML is not. This means that XHTML dоcuments can be parsed using XML-based tools and libraries, which can provide additional benefits such as improved error handling and compatibility with other XML technologies.

Additionally, HTML has multiple versions, such as HTML4 and HTML5, which have evolved over time to include new features and improvements. XHTML 1.0 was an attempt to bring HTML closer to XML, but it didn't gain widespread adoption. HTML5, on the other hand, is now the standard for web development and combines the best aspects of HTML and XHTML.

In summary, the main differences between HTML and XHTML are their syntax rules and how they are parsed. HTML is more forgiving and lenient, while XHTML follows stricter XML rules. However, with the dominance of HTML5, the distinction between the two has become less important.
  •  

Charlesth

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.
  •  


Paulagary

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]
  •  

littonbarney

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 dоcuments 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.     
  •  

paulstrahann

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.




online form builder
  •  

iamedward79

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]
  •  


MarcoLeitner

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.

SanviMalhotra

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 dоcument file format where as XHTML has Markup language.


Origiin

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
  •  


If you like SEOmastering Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...