Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. span

span

Scheduled Pinned Locked Moved Web Development
questionhtmltutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    andyg 101
    wrote on last edited by
    #1

    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?

    T 1 Reply Last reply
    0
    • A andyg 101

      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?

      T Offline
      T Offline
      theJazzyBrain
      wrote on last edited by
      #2

      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  | |---------------|

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups