W3c validation error

Posted on 2009-02-12
Last Modified: 2012-05-06
I am getting w3c validation error.
Error description:
Line 231, Column 56: there is no attribute "onClick".
&lider1"><a class="" href="#" onClick="ContentSlider.turnpage('slider1', 0); r
<script language="javascript" type="text/javascript">ContentSlider("slider1", 8000)</script>


<div id="paginate-slider1"><a class="" href="#" onClick="ContentSlider.turnpage('slider1', 0); return false" >1</a> <a class="" href="#" onClick="ContentSlider.turnpage('slider1', 1); return false">2</a> <a class="selected" href="#" onClick="ContentSlider.turnpage('slider1', 2); return false">3</a> <a class="" href="#" onClick="ContentSlider.turnpage('slider1', 3); return false">4</a> <a rel="3" href="#" style="font-weight: bold;" onClick="ContentSlider.turnpage('slider1', parseInt(this.getAttribute('rel'))); return false">Next</a></div>

Open in new window

Question by:sdugar
    LVL 2

    Accepted Solution

    Hi sdugar,

    You need to change any reference to 'onClick' to 'onclick' (ie. use lowercase). This should fix the problem.

    LVL 8

    Assisted Solution

    Try "onclick"  - all lower case

    Author Closing Comment

    very fast ! I got the answer in a  minute!!!

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now