Lurker News
Back to discussion

Comment by jrandm

jrandm1 reply#
Thank you for pointing that out! does indeed have a default font-family of monospace there.

And isn't defined at all! I'm not disputing this is all internally consistent or that I used to write what I'm now learning is incorrect HTML, this completely explains what I used to know about the tags and I love it:
I didn't know or forgot was a thing for whatever reason. I know HTML5 is big and I don't know it all, HTML4 is much less so and I usually do.
I always prefer

 when I'm writing HTML to show intentionally-monospace blocks like code or code output because  is inconsistent, importantly for me it meant sometimes it didn't|doesn't work. Here I now know why: The CSS2 stylesheet doesn't define anything for !

Other replies have described how it makes more literal/semantic sense to nest these things together and I agree completely; many times I am surprised at how elegant these old specifications are, if indirectly.

detaro1 reply#
from that link:

    pre, tt, code,
    kbd, samp       { font-family: monospace }

?
jrandm#
I agree, looks like I misread it -- then some of this is still a mystery that's probably left to how things like Netscape and Internet Explorer used to work. Too bad!