3 ms·
The “problem” is that html is largely free-form as schemas go, so undifferentiated div soup is perfectly valid. Being able to easily define a document schema k
by chuckadams 2y ago
The “problem” is that html is largely free-form as schemas go, so undifferentiated div soup is perfectly valid. Being able to easily define a document schema kind of died out with xhtml, and no one uses html5’s official xml encoding.
Basically it’s up to the content generator to produce semantically nice html, whether that’s a fancy editor or a widget toolkit. When I use PrimeVue for example, the generated DOM is chock full of ARIA attributes.