1. 2W7RP3XL8F2TVWWZ
  2. 1K1HF3ZB0EA17PUH
  3. 081UZEXFUVN6VW4Z
  4. DEFKNBV8PF4SUZ0X
  5. JSMK4P0BVYPPM8JH
  6. FKN8GMSB7SG0B305 (new redeem code) 


  • 73H8Y3MRB6YR04GC
  • XHTML stands for Extensible Hypertext Markupa Language?
  • XHTML is aimed to replace HTML
  • XHTML is almost identical to HTML 4.01
  • XHTML is a stricter and cleaner version of HTML
  • XML (Extensible Markup Language) is a markup
  • language designed for describing data
  • XHTML is HTML redefined as an XML application
  • XHTML is a "bridge" between HTML and XML


What is XHTML?

  • XHTML stands for Extensible HyperText Markup Language
  • XHTML is the next generation of HTML
  • XHTML is aimed to replace HTML
  • XHTML is a stricter and cleaner version of HTML

XHTML is a reformulation of HTML into a language that conforms to the XML 1.0 Recommendation. XHTML Family document types are all XML-based, and ultimately are designed to work in conjunction with XML-based user agents


HTML5 - Serializations + Model

Two serializations: HTML5 vs. XHTML5

<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8>
<title>My example</title>
</head>
<body>... </body> 
</html>

 

XHTML5

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<title>My example</title>
</head>
<body>... </body></html>


HTML

  • Major markup language used to display web pages on the Internet
  • Older version
  • Works well in older browsers
  • Less detailed
  • Supports vector graphics using other technologies or plugins
  • Difficult to include and handle multimedia
  • Offline storage support is not good
  • Web sockets are not available. 



HTML5

  • Major revision of HTML for describing the content and appearance of web pages
  • New version
  • Works well in new browsers; also supports older browsers
  • More detailed
  • Vector graphics are an integral part
  • Easy to include and handle multimedia
  • Offline storage support is good
  • Web sockets are available and provide full duplex communication
  • Supports Geolocation


 What is XHTML?

  • XHTML stands for EXtensible HyperText Markup Language
  • XHTML is a stricter, more XML-based version of HTML
  • XHTML is HTML defined as an XML application
  • XHTML is supported by all major browsers


Why XHTML?

XML is a markup language where all documents must be marked up correctly (be "well-formed"). XHTML was developed to make HTML more extensible and flexible to work with other data formats (such as XML). In addition, browsers ignore errors in HTML pages, and try to display the website even if it has some errors in the markup. So XHTML comes with a much stricter error handling.



The Most Important Differences from HTML

  • <!DOCTYPE> is mandatory
  • The xmlns attribute in <html> is mandatory
  • <html>, <head>, <title>, and <body> are mandatory
  • Elements must always be properly nested
  • Elements must always be closed
  • Elements must always be in lowercase
  • Attribute names must always be in lowercase
  • Attribute values must always be quoted
  • Attribute minimization is forbidden


XHTML - <!DOCTYPE ....> Is Mandatory

An XHTML document must have an XHTML <!DOCTYPE> declaration. The <html>, <head>, <title>, and <body> elements must also be present, and the xmlns attribute in <html> must specify the xml namespace for the document.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Title of document</title>
</head>
<body>
  some content here...
</body>
</html>


Difference between HTML and XML & HTML

  • It has a predefined Set of rules on tags
  • It is used to describe how the data will be displayed on the web page.
  • 3 It Can be Seen directly on the Web Browser.
  • Its Extension is html XML Document structure



XML

4 It has no predefined tags User has to define his own tags. It is used to store and transport data. Ⓒ It Can be seen only if a proper style Sheet is attached with it. Its Extension is XML. According it can to use there is no tags. than me XML is better because user defined tags tags and use for learning predefined ( We can't. HTML. say вот it is easier. are comparable.




HTML

<html>
<title>Course Roster</title>
<body>
<center>
<h1>Course Roster</h1>
<h2>XML Programming</h2> <h3>Department: WiTEL</h3>
<p>
<table border=2>
<tr>
<th>Teacher</th>
<td>Paul
</tr><tr>
</td>
<th>Student<br>List</th>
<td>Ron Jones<br> Uma Abingdon<br> Lindsay Garmon
</td>
</tr>
</table>
</center>
</body>
</html>

XML

<?xml version="1.0"?>
<course>
<name>Java Programming</name>
<department WITEL</department>
<teacher>
<name>Paul Thompson</name>
</teacher>
<student>
<name>Ron Jones</name>
</student> <student>
<name>Uma Abingdon</name>
</student>
<student>
<name>Lindsay Garmon</name>
</student>
</course>


Why XHTML?

  • XHTML is a combination of HTML and XML
  • XML is a markup language where everything has to be marked up correctly, which results in "well-formed documents
  • XHTML consists of all the elements in HTML 4.01 combined with the syntax of XML
  • We have reached a point where many pages on the www.contain "bad" HTML
  • XHTML pages can be read by all XML enabled devices


Differences Between XHTML and HTML

  • Documents must be valid
  • XHTML namespace must be declared in <html> element
  • <head> and <body> elements cannot be omitted
  • <title> element must be the first element in the <head>
  • End tags are required for non-empty clauses
  • Empty elements must consist of a start-tag and end-tag
  • pair or an empty element (e.g. <br/>) Element and attribute names must be in lowercase
  • Attribute values must always be quoted
  • Attribute names cannot be used without a value


What is XHTML? Vs Why XHTML? HTML, XML

Post a Comment

Previous Post Next Post