October 11th, 2019
It was this:
I say “was” because it’s deprecated. It may still “work” (like everybody’s favorite
<marquee> in some browsers), but it could stop working anytime, they say. The whole purpose of it was to display text in a monospace font, like the way Teletype machines used to.
Dave used it jokingly the other day.
Per recent events: As you can see by this official transcript, Dave Rupert LLC has done nothing wrong…
Client: This is the greatest call I’ve ever been on.
Dave Rupert LLC: Definitely and we didn’t even do anything illegal or quid pro quo’y.
— Dave Rupert (@davatron5000) September 24, 2019
Which got me thinking how much I used to use that element!
— Chris Coyier (@chriscoyier) September 24, 2019
Right here on CSS-Tricks. See, in my early days, I learned about that element and how its job is to set text as monospace. I thought, oh! like code! and then for years that’s how I marked up code on this site. I had never heard of the <code> element! When I did, I switched over to that. But I still haven’t updated every single article from <tt> to <code>. It lingers in articles like this:
I bring this up just because it’s a fun little example of not knowing what you don’t know. It’s worth having a little sympathy for people early in their journey and just doing things that get the job done because that’s all they know. We’ve all been there… and are always still there to some degree.