W3C validator message does not make sense

Discussion in 'Search Engine Optimization' started by Paulo Sebin, May 10, 2017.

  1. #1
    Hello.
    I'm doing consulting for an online stationery in Brazil. I have a question that does not make sense to me. According to the W3C, for almost every page of the site, HTML does not follow a particular prairie. The error message is as follows:

    Error: Element img is missing required attribute src.

    From line 942, column 173; to line 942, column 273

    ecotank" ><img class="owl-lazy" data-src="https://www.ohe.com.br/banners/86/ecotank.jpg" alt="Epson ecotank" /></a>


    But it does not make sense when analyzing the code. Could someone clarify me better if I should worry about this situation?

    If it is necessary to view the source code, the site in question is https://www.ohe.com.br
     
    Paulo Sebin, May 10, 2017 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,828
    Likes Received:
    4,541
    Best Answers:
    123
    Trophy Points:
    665
    #2
    The image is
    <img class="owl-lazy" data-src="https://www.ohe.com.br/banners/86/ecotank.jpg" alt="Epson ecotank" />
    HTML:
    when we'd expect it to be
    <img class="owl-lazy" src="https://www.ohe.com.br/banners/86/ecotank.jpg" alt="Epson ecotank" />
    HTML:
    I'm assuming that there's some funky jquery running over the top and doing something with the data-src but I'd suggest putting in a src even if it is just to a 1px transperant gif.
     
    sarahk, May 10, 2017 IP