[personal profile] tropicsbear posting in [community profile] style_system
So I heard that the font tag and associated tags are being deprecated? (I'm not sure? This also includes center?) So I started using span when needed in my entries. The problem is that the text isn't displaying accurately anymore.

In the layout I'm using, italicized text displays as Old Standard TT or Georgia, and bolded text is displayed as Lato or Calibri. If I just use b or i, the text displays correctly. But if I use span (like, < span style="font: italic;" >*text*< /span >, the different fonts are gone.

This is the layout CSS I'm using:



Alternately, if I'm wrong about font being deprecated, feel free to tell me I'm an idiot so I can just go back to my old ways.

Date: 2013-03-11 08:24 am (UTC)
zooey_glass: (Typewriter)
From: [personal profile] zooey_glass
Just an addendum - my understanding is that it's actually bad to use span styles where the text styling has semantic meaning. That is, if you want it to display in italics because you're emphasising it, you should use [em] rather than a span, because that way screen readers will also know to emphasise it. When they hit spans, they just go 'ho hum, some visual styling' and ignore that.

For the same reason, it's better to use h1, h2 etc for headers (rather than styling big, bold text or whatever) since those will actually allow a screenreader user to scan through just the headings in the same way as a visual user can.

Profile

Dreamwidth style system discussion

October 2025

S M T W T F S
   1 234
567891011
12131415161718
19202122232425
262728293031 

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 8th, 2026 06:43 pm
Powered by Dreamwidth Studios