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; }
Nope, no bad practice
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).
em { }
.rte em { }
Great. Thanks for the help.
EDIT on the same topic… which of the two tags is better suited for simply make text italic. I would assume the i tag…right?
Good reading: http://html5doctor.com/i-b-em-strong-element/
@thedoc
Awesome…will certainly have a read. Thanks
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; }Nope, no bad practice
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).Great. Thanks for the help.
EDIT on the same topic… which of the two tags is better suited for simply make text italic. I would assume the i tag…right?
Good reading: http://html5doctor.com/i-b-em-strong-element/
@thedoc
Awesome…will certainly have a read. Thanks