Forums

  • # 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: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:20 pm

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

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

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag