What is this code?

Discussion in 'General Chat' started by King_Richard, Aug 18, 2007.

  1. #1
    I was browsing a website and noticed this code under view source:

    <!--
    <li><a href="http://www.example.com" target="_blank"><img border="0" src="http://www.thewebsite.com/images/dff.gif" alt="" />Example Anchor</a></li>
    -->

    I changed it to example.com and thewebsite.com. The code is on thewebsite.com It seems liks some sort of hidden hardlink for example.com? Or maybe not?
     
    King_Richard, Aug 18, 2007 IP
  2. dancom96

    dancom96 Well-Known Member

    Messages:
    1,556
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    105
    #2
    I don't get what you mean...
    If its what I think it is it's probably like a menu.
    (It'll look look a menu if the star was a image)
     
    dancom96, Aug 18, 2007 IP
  3. Katy

    Katy Moderator Staff

    Messages:
    3,490
    Likes Received:
    513
    Best Answers:
    7
    Trophy Points:
    355
    #3
    That text will be invisible as long as it stays between the <! -- and --> tags.

    It's usually used if you want to give your visitors some info, like <! -- everything is copyrighted to me --> that will be visible in the source but not on the page.
     
    Katy, Aug 18, 2007 IP
  4. DevilHellz

    DevilHellz Well-Known Member

    Messages:
    2,296
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    160
    #4
    The <li> tag defines the start of a list item. The <li> tag is used in both ordered (<ol>) and unordered lists (<ul>).

    This is what it produces:

    • <IMAGE IS HERE, LINKED TO EXAMPLE.com> Example Anchor [Which is also linked to example.com]
     
    DevilHellz, Aug 18, 2007 IP
  5. AlTeC

    AlTeC Banned

    Messages:
    289
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yes.. it will not be displayed in the web, unless those <!-- & --> tags are removed.
     
    AlTeC, Aug 18, 2007 IP
  6. King_Richard

    King_Richard Well-Known Member

    Messages:
    150
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    103
    #6
    I see. So it will not be displayed on the web for normal people? What about search engine bots?
     
    King_Richard, Aug 20, 2007 IP
  7. AlTeC

    AlTeC Banned

    Messages:
    289
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Search Engine Spiders checks the site's content visibilities.. not the source code first of all I guess.
     
    AlTeC, Aug 20, 2007 IP
  8. samantha pia

    samantha pia Prominent Member

    Messages:
    4,639
    Likes Received:
    482
    Best Answers:
    0
    Trophy Points:
    310
    #8
    <!-- <<<this is the start of an include tag for php. now you can not have a url within an ordered list in html i.e. <il> url </li> so i guess to get around that they have used a php include to get around the html error that would happen if they put the url within html. so in effect it's php not html within that list.

    html includes can only be called from the same folder, php includes can be called from any url on the internet
     
    samantha pia, Aug 20, 2007 IP