what is difference between html and xhtml | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is difference between html and xhtml

case sensitive ,root tag

4th Dec 2016, 4:19 AM
sonu yadav
sonu yadav - avatar
1 Answer
+ 3
Xhtml is more strict syntax wise because it conforms to XML standards. Yes Tag names are case sensitive. To give you a basic example.<p>some text will be fine as html but Xhtml will require a closing </p> tag.
5th Dec 2016, 8:51 AM
Remmiq Sliv
Remmiq Sliv - avatar