Forums

Get help. Give help. A Web Design and Development Community.

Styling i and em tags?

  • # February 15, 2013 at 4:10 pm

    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;
    }

    # February 15, 2013 at 4:12 pm

    This reply has been reported for inappropriate content.

    Nope, no bad practice

    # February 15, 2013 at 4:13 pm

    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).

    # February 15, 2013 at 4:14 pm

    This reply has been reported for inappropriate content.

    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?

    # February 15, 2013 at 4:20 pm

    Good reading: http://html5doctor.com/i-b-em-strong-element/

    # February 15, 2013 at 4:21 pm

    This reply has been reported for inappropriate content.

    @thedoc

    Awesome…will certainly have a read. Thanks

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

We have a pretty good* newsletter.