Style rules can be attached using:
Generally, I prefer to use linked style sheets because they:
However, your question is asking specifically about the style
tag versus inline styles. Prefer to use the style
tag, in this case, because it:
Inline elements only affect their respective element.
An important difference between the style
tag and the inline attribute is specificity. Specificity determines when one style overrides another. Generally, inline styles have a higher specificity.
Read CSS: Specificity Wars for an entertaining look at this subject.
I hope that helps!