So I heard that the
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
This is the layout CSS I'm using:
Alternately, if I'm wrong about
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.Tags:
no subject
Date: 2013-03-11 03:08 am (UTC)<span style="font-style: italic;">*text*</span>And yes, the font tag in HTML is deprecated.
But, what you should be doing is using the HTML tags in your entries that apply the right meaning to the text. If you want it in italics to emphasize the text, use the
<em>tag. Your style, and most styles or browser defaults style the<q>tag for quoted text as italics too.If you just want the text to look different, it really is okay to just use the
<i>tag.Those methods are a whole lot quicker to type than a font tag or a span style. And if someone is viewing your journal in their style and they have those tags styled as red or blue instead of italics, well, that's their choice.
no subject
Date: 2013-03-11 07:08 am (UTC)no subject
Date: 2013-03-11 08:24 am (UTC)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.
no subject
Date: 2013-03-11 03:27 am (UTC)On a side note, how did you manage to make the angled brackets appear? I had to include spaces in my post because then the entire line wouldn't display.
no subject
Date: 2013-03-11 03:54 am (UTC)> and < create > and <
no subject
Date: 2013-03-11 05:05 am (UTC)