The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Styling i and em tags?
Hello,
Is it considered bad practice to style the i and em tags in css?
Here is an example:
i { font-family: 'Times New Roman', serif; font-style: italic; } em { font-family: 'Times New Roman', serif; font-style: italic; color: red; }
I wouldn’t necessarily call it ‘bad practice’. I’d say you might want to be more specific than just outright `em { }`. Maybe you want to do something like `.rte em { }` (rte == rich text editor).
Good reading: http://html5doctor.com/i-b-em-strong-element/