Hi
What’s the difference between using embedded inline styles in web page content (as opposed to embedded styles in the head section of the page), and using the span tag. CSS tutorials strongly advise against using embedded inline styles (highly frowned upon), and advise using external style sheets.
After much online searching on the use of the span tag I’ve noticed that it’s popularly used, but it seems to me it’s not much different to the frowned upon inline styles.
The reason for this query is that I’ve got sub heads formatted to h2 (for SEO purposes) & I want them to be colored black. Problem is that they also serve as links to other pages – I’ve styled a:link to be black to counter this but in the same div container there are other links within paragraphs – I want these to be the traditional blue link colour – but of course, they’re now black too.
Any ideas how I can style linked sub heads to be black whilst paragraph text links to be blue – they’re all in the same div container? Can I merely enclose the sub heads in a span tag with only an ID and then have a style for it in the external style sheet?
Would appreciate some help
Genny




