Could you provide some more details on the exact type of styles you're using? The simple answer is that you just apply the style to both tags using a class:
<div class="someClass">contents of div here</div>
<span class="someClass">contents of span here</span>
or by just declaring the style under the tags:
div, span, p {
font-weight: bold;
}
But, there are problems. To use your example, div
is a block element and span
is an inline element, so some positioning-related styles, like float
, can't work for both. And if you're using IDs instead of classes, you won't be able to reuse at all, because an ID can only be attached to one element.