0 votes
128 views
in HTML by (3.5k points)
edited

What is difference between HTML and XHTML?

1 Answer

0 votes
by (3.5k points)
edited

HTML and XHTML has a few differences as below:

  • HTML stands for Hypertext Markup Language while XHTML stands for Extensible Hypertext Markup Language
  • The format of HTML is a document file format while for XHTML the file format is a markup file format
  • In HTML it is not necessary to close tags in the same order as they were opened, but in XHTML it is necessary
  • In XHTML, it is quite important to write doctype on the top of the file; while in HTML is it not needed
  • The file name extension used in HTML are .html, .htm.; and the file name extension used in XHTML are .xhtml, .xht, .xml.

Related questions

0 votes
1 answer 122 views
0 votes
1 answer 109 views
0 votes
1 answer 142 views
0 votes
1 answer 187 views
0 votes
1 answer 231 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

561 users

...