WordPress.org

Ready to get started?Download WordPress

Forums

What do i need to do to fix this code (2 posts)

  1. justingray
    Member
    Posted 1 year ago #

    The w3c validator is seeing al kinds of errors in this code. As I am new to HTML I am slightly lost as to how to resolve this. The errors dont seem to make sense.

    <script type="IN/FollowCompany" data-id="2869277" data-counter="none"></script>

    Theses are the errors.

    there is no attribute "data-id"
    there is no attribute "data-counter"

  2. stvwlf
    Member
    Posted 1 year ago #

    Hi

    Those two attributes are only valid in HTML5. Your theme most likely is using XHTML and thus they are unknown to the w3c validator as they are not part of XHTML. That is a harmless error. I would say ignore it.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags