I understand that this tag could easily be replaced with <span class="nowrap">
and a little bit of CSS, but in real life markup I often find that <nobr>
tag is more appropriate. It's not about style, it's about content. <nobr>V. V. Putin</nobr>
for example (in russian typography last name and first name shouldn't be line breaked, I think similar rules apply to other languages).
I guess that deprecation means there's something better but I don't see how styling is better than separate tag. Of course there are places where CSS should be used. Do I miss something?
.nobr { white-space:nowrap; }
– Peliasnobr {white-space:nowrap;}
to your css and you're good to go. (for upward compatibility reasons html allows styling of unknow elements, so even if the browser doesn't know nobr, you can still style it to behave as such). Note: there's no dot beforenobr
so you can just use<nobr>
like before. Also: never use<span class="nobr">
because nobr does not describe the content, it only describes lay-out-behavior. You'd be better off with somehing like<a class="textbutton">
. – Unshapen