Home >>XHTML Tutorial >XHTML Summary

XHTML Summary

XHTML Summary

We suppose you have recognized all the aspects relating to XHTML. Therefore, you should be able to write your HTML document in a very well-formed XHTML document and get a fresher version of your website.

Converting HTML to XHTML

You can convert your existing HTML website into XHTML website.

Let us have to go through crucial factors. To convert your existing document, you must first decide which DTD you are going to adhere to, and include document type definition at the top of the document.

  • Try to ensure you have all other essential components. These include a root element <html> that implies an XML namespace, a <head> element, a <title> element stored within the <head> element, and a <body> element.
  • Convert all element keywords and attribute names to lowercase.
  • Ensure that all attributes are in a name="value "format.
  • Make sure that all container components have closing tags.
  • Place a forward slash within all standalone elements. For eg, rewrite all <br> elements as <br/>.
  • Designate client-side script code and style sheet code as CDATA parts.

XHTML Upcoming Versions

Always XHTML is being developed and the next version XHTML 1.1 has been introduced. We also discussed this in depth in XHTML Version 1.1 chapter.

XHTML Tags, Characters, and Entities

XHTML tags, characters, and entities are much the same as HTML, so if you already know HTML then you do not need to add additional effort to learn such subjects, particularly for XHTML. We also pointed out all HTML things along with XHTML tutorial too, as they are relevant to XHTML as well.