Powered by Blogger.

Sunday, March 2, 2014

What do you mean by XHTML?

In this post we will discuss about What is XHTML. Also you can check out my previous posts on:

- How to trim spaces in column values in sql server 2008?

- The service did not start due to logon failure in sql server

- Difference between primary key and unique key in SQL Server

"XHTML" stands for Extensible Hyper-Text Markup Language. This is considered as the extended version of Hypertext Markup Language (HTML) that has been modified to be valid XML. XHTML is an XML format. This language is well structured and is parsed by the XML parser. The implementation is purely based on its syntax rules.
The features of XHTML are given below:

-> It requires every tag to have corresponding closing tags.

-> It is case sensitive.

-> It requires all web pages to contain the<html>,<head>,<body> elements and the DOCTYPE declarations.

-> It requires that all attributes be enclosed in quotation marks and includes a space between each attribute

      width ="100" height="50" (valid)
      width ="100"height="50"(invalid)

-> Double dashes (--) are not allowed within comments

-> CSS (Cascading Style Sheets) rules apply only to documents that are delivered as text/html in XHTML.

-> It uses &amp instead of ampersand (even in hyperlinks) and always use &lt and &gt instead of less-than and greater-than symbols in your text.

-> The web pages written in XHTML are rendered properly in almost all browsers.