SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Some text as link

    Hello,

    I have some text that should not be a link, but it is one.

    On the page http://aupresent.thalasoft.com/newspaper/9 there are three exceprts that are underlined, but they should not be, like all the others.

    I wonder what is wrong with them 3. I seems like a non closed element.. but I can't find anything...

    Kind Regards,

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    7 Thread(s)
    All of your text is wrapped in an <a> element, which is underlined by default:

    Code:
    <a href="http://aupresent.thalasoft.com/engine/modules/news/newsStory/display.php?newsStoryId=265" onmouseover="(window.status=''); return(true);" title="">
    <span style="font-weight: bold; font-style: italic; color: rgb(0, 0, 205);">(1 exercice : orthographe)</span>
    <br>
    <img border="0px" align="left" src="/account/data/news/newsStory/image/insee.jpg" alt="" style="margin-top: 2px; margin-right: 5px;">Le 27 novembre, le magazine économique « Challenges » livre à notre attention quelques-uns des résultats de l’étude annuelle de l’INSEE, « le portrait social de la France » qui analyse le mode de vie des Français. Cette année, on y apprend, entre autres, que...<br>
    </a>
    It would be better to use a <p> element, and wrap the actual link text in a link, rather than a styled span. E.g.

    Code:
    <p><a href="http://aupresent.thalasoft.com/engine/modules/news/newsStory/display.php?newsStoryId=265">(1 exercice : orthographe)</a>
    <img src="/account/data/news/newsStory/image/insee.jpg" alt="">
    Le 27 novembre, le magazine économique « Challenges » livre à notre attention quelques-uns des résultats de l’étude annuelle de l’INSEE, « le portrait social de la France » qui analyse le mode de vie des Français. Cette année, on y apprend, entre autres, que...</p>

  3. #3
    SitePoint Zealot
    Join Date
    Aug 2010
    Posts
    143
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh.. Thankfs for that Ralph !! I'll correct it asap.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •