XHTML
XHTML-Extensible HyperText Markup Language
XHTML is almost similar to HTML 4.0 this is very strict version of HTML. It is developed by (W3C) World Wide Web Consortium to help web developer’s transition easy.
Many times some codes of HTML will not work on all browsers so it is used.
Difference between HTML and XHTML
How to convert HTML into XHTML
XHTML <!DOCTYPE> should be given in the first line to all page.
We should add Xmlns attribute to element.
Element and Attributes name should be in lowercase.
Give a quotation to all attributes.
Interview Questions And Answer
XHTML(Extensible HyperText Markup Language)
XHTML is almost similar to HTML 4.0 this is very strict version of HTML. It is developed by (W3C) World Wide Web Consortium to help web developer’s transition easy.
Many times some codes of HTML will not work on all browsers so XHTML is used.
- HTML stands for Hypertext Markup Language, whereas XHTML stands for Extensible Markup Language.
- All modern browsers support XHTML.
- A static webpage is an HTML web page and a dynamic web pages are XHTML.
- HTML is based on SGML while XHTML is based on XML .
- An XML application of HTML is defined as XHTML.
- XHTML is “the modern version of HTML 4.