span
Web Development
2
Posts
2
Posters
0
Views
1
Watching
-
How can I define multiple tags of span, so that I might higlight some text bold and some red for example? can I do it in a linked in style sheet or do I need to define it at that point in the Html code?
You can can do it either way. I would suggest to make a css file where you define classes e.g. In your linked css file:
.spanBold {font-weight:bold;} .spanRed {color:red;}
and then in your code:<span class=spanBold>bold text here</span> <span class=spanRed>Red text here</span> <span>Normal text here</span>
Hope this helps. |---------------| | theJazzyBrain | |---------------|