confusion : <li><a href="#" class="active">Home</a></li>

Discussion in 'HTML & Website Design' started by IanT, Feb 20, 2010.

  1. #1
    Okay so Im just confused about a small element

    what is the difference between:

    <li><a href="#" class="active">What I put here</a>and what I put here</li>

    Im just curious because sometimes Ill put stuff into the graphic designer part (you know how some designers have code view and design view)

    but then when I go to code view it gives me something like:

    <li><a href="#" class="active">Ho</a>me</li>

    Instead of

    <li><a href="#" class="active">Home</a></li>


    So... just a little confused! :)

    Thanks for any help!!

    :)
     
    IanT, Feb 20, 2010 IP
  2. wompie

    wompie Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The </a> ends the link part, so you have to put the text you want to be a link before the </a>
    But it's probably a glitch with your graphic designer if you're not purposefully putting the </a> in the middle of the word
     
    wompie, Feb 20, 2010 IP
  3. m7md_cis

    m7md_cis Peon

    Messages:
    91
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Between <a href="">...</a> we put the text which we want make it as link, but any text before and after <a href="">...</a> will be as normal text without link.
     
    m7md_cis, Feb 21, 2010 IP
  4. IanT

    IanT Well-Known Member

    Messages:
    503
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    130
    #4
    okay cool thanks for clearing that up! :)
     
    IanT, Feb 21, 2010 IP