HTML vs XHTML
Markup Languages are those essential tools which are necessary to build a webpage.
HTML (HyperText Markup Language) was published in 1993 and was the 1st internet-based markup language used for publishing web pages. HTML then quickly evolved and got several versions released, making it a sort of standard for markup languages.
XML which was first published in 1998 is another standard of markup language that is similar to HTML but is somewhat stricter than HTML in error handling and formatting.
Before the release of HTML5, the international community called World Wide Web Consortium (W3C) started developing an extension of HTML based on XML format. The language which was released was named XHTML which stands for eXtensible HyperText Markup Language.
Here’s a list of Most Important XHTML standards:
* Always begin the HTML document with <!DOCTYPE>
* The xmlns attribute in is mandatory
* All the tags (even empty tags e.g. <br/>) must always be closed
* Tag names & attributes must always be in lowercase
* Tags must always be properly nested
* Attribute values must always be in double quotes
* You cannot use short names for attributes
* <html>, <head>, <title>, and <body> tags must
define the HTML page structure as shown below:
The difference between HTML & XHTML is described more practically in one of my YouTube videos. Check it out here:
Also, don’t forget to check out my Udemy courses and connect with me if you have any questions/concerns/doubts and I’ll be happy to help you become better at programming.
Hi! I am Nirmal Joshi, founder and CEO of a tech development company in India. I have more than 23+ years' experience…
Founder and CEO of an IT company in India, I have more than 22+ years’ experience of dealing with people,processes and codes. I started online training for my students when it was not in fashion and have trained more than 1000 students/working professionals personally which has helped them to secure awesome jobs or even start their own business.
I am also an active corporate trainer for several years now and have been consulting with top Fortune 1000 companies to streamline their development projects efficiently.
My goal is to share knowledge with primary focus on advanced tools & techniques, projects and standard programming practices to help my students understand the basics and fundamentals and make awesome technological implementations.
If you’re an avid technology aspirant or someone who is interested in creating amazing things in pixels and code, enroll for my courses or connect with me through my Youtube Channel.