Skip to main content
Participant
January 14, 2016
Answered

what is wrong with the below code

  • January 14, 2016
  • 1 reply
  • 897 views

<div class="container discover_sec">

<div class="wrapper">

<h2>Discover OCTAL</h2>

<div class="discover 1">a href="/Sustainability/Health-Safety"&gt;

<img alt="" src="/portals/0/ModuleContent/Discover%20OCTAL/discover_octal.png" /> &lt;/href="http:&gt;</div>

<div class="discover2">

<ul>

    <li>

    <a title="Sustainability" href="/Sustainability/Health-Safety">

    <span class="discover_image"><img alt="" src="/portals/0/ModuleContent/Discover%20OCTAL/discover_octal4.png" /></span>

    <span class="inside_discover">

    <span class="heading">sustainability</span>

    <span class="content">OCTAL has the Lowest Carbon Footprint</span>

    <span class="find">find out more</span>

    </span>

    </a>

    </li>

    <li>

    <a title="Innovation" href="href=">

    <span class="discover_image"><img alt="" src="/portals/0/ModuleContent/Discover%20OCTAL/discover_octal5.png" /></span>

    <span class="inside_discover">

    <span class="heading">innovation</span>

    <span class="content">A state-of-the-art plant</span>

    <span class="find">find out more</span>

    </span>

    </a>

    </li>

    <li>

    <a title="Discover OCTAL" href="http://octal.cms.trafficdemos.com/Why-OCTAL/Global-Compliance">

    <span class="discover_image"><img alt="" src="/portals/0/ModuleContent/Discover%20OCTAL/discover_octal6.png" /></span>

    <span class="inside_discover">

    <span class="heading">Discover OCTAL</span>

    <span class="content">What sets us apart form pthers?</span>

    <span class="find">find out more</span>

    </span>

    </a>

    </li>

</ul>

</div>

<div class="discover3"> <a href="http://octal.cms.trafficdemos.com/Media-Center/media_gallery"><img alt="" src="/portals/0/ModuleContent/Discover%20OCTAL/discover_octal2.png" /> </a><a href="http://octal.cms.trafficdemos.com/Media-Center/media_gallery"><img alt="" src="/portals/0/ModuleContent/Discover%20OCTAL/discover_octal3.png" /></a> </div>

</div>

</div>

This topic has been closed for replies.
Correct answer David_Powers

The code should look like this:

<div class="discover1"><a href="/Sustainability/Health-Safety">

<img alt="" src="/portals/0/ModuleContent/Discover%20OCTAL/discover_octal.png" /> </a></div>

1 reply

Jon Fritz
Community Expert
Community Expert
January 14, 2016

Lines 4 and 5 (right after the spaces at the top) are malformed. You're missing an opening < for your a href and it looks like it was pasted in Design View as text so the brackets got changed to & codes

Participant
January 14, 2016

Hello Jon,

yes apparently it happened by mistake and i didn't have a backup and i tried to fix it but it didn't work, am not an expert, i tried to add < as you said but it didnt change anything, the image went missing :s so i reverted back to the previous code up

Welcome to OCTAL

David_Powers
David_PowersCorrect answer
Inspiring
January 14, 2016

The code should look like this:

<div class="discover1"><a href="/Sustainability/Health-Safety">

<img alt="" src="/portals/0/ModuleContent/Discover%20OCTAL/discover_octal.png" /> </a></div>