You can definitely use a class attribute in a span tag.
It can be difficult to switch from thinking about applying a font style directly to text (e.g. <i>) and instead think about why you are using the style on that piece of text - i.e. why are you making it Italic. For instance its usually not just italic because you felt like it, it may be Italic because its the name of a book. In which case instead of using <i> you can use the <span class="bookname">My Book</span> syntax, along with a stylesheet that defines class bookname as italic, e.g. span.bookname { font-style: italic }
Then as theducks said, when you decide you want your book names in bold italic or pink, you just change the style definition instead of every bookname entry - and you can tell you bookname italics separate from your quote italics, etc.
|