Why use XHTML? Because it's awesome, of course. It's strict, so it works just as you intend. It also doesn't let you do shit like not closing <li> tags. For those who like React ecosystem, it behaves the same way that JSX does, too (it's – arguably – vice versa actually, JSX is modeled after XML, and XHTML is XML).