`<br>` vs. `white-space`

If I'm aiming for accessibility for specifically multi-line quote/speech, which among the two would be more preferrable? For the first option, I do have a processor to prefix every newline with a <br> , but the CSS way seems clean on paper. https://codepen.io/Suggon/pen/yLWdMXj?editors=1100 Suggestion for a more semantic tag is also welcome, but please note that I have a limited number of usable tags.
2 Replies
Suggon
SuggonOP6mo ago
bump
lko
lko6mo ago
@Suggon I prefer <br> because if you're doing just plain html, then maybe you're fine, but if you're using a frame work that for some reason compresses your html, it might break your new lines as well, so <br> is safer
Want results from more Discord servers?
Add your server