3 ms·
> I assume no frontend would want to render the HTML as is. Well yeah, that'd be pretty ugly on most browsers without some kind of stylesheet, but... > Hence
by yellowapple 3y ago
> I assume no frontend would want to render the HTML as is.
Well yeah, that'd be pretty ugly on most browsers without some kind of stylesheet, but...
> Hence they would need IDs on those DIVs to style and place them.
...this doesn't really follow from that. Like yeah, that's probably a good idea (even better would be some more specific tags than just divs), but the client has everything it needs to present the data to the user even without that.
The point, I think, is that styling is a separate concern; HATEOAS and REST have more to do with structuring information and interactions with it, and the examples therefore emphasize that instead of a possibly-accidental prescription of some specific styling for that information.