How to render a checkbox as "unchecked"

Posted on 2006-03-27
Last Modified: 2010-04-09
Hi.  This is probably a simple question, but it's driving me nuts.

I have this HTML code in my page:

      <td class="TitleColor"><label for="label5a"><font color="#000033">&nbsp;<br>Inactive?
        <input type="checkbox" name="Inactive" checked="False">

...but the rendered checkbox displays "checked".

Why does this happen, and how can I get the checkbox to display unchecked, as it should?
Question by:Mckenzma
    LVL 28

    Accepted Solution

    <input type="checkbox" name="Inactive">


    Author Comment

    Thanks.  I figured out that the presence / absence of the "checked" keyword is the driver.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
    In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
    In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

    779 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

    14 Experts available now in Live!

    Get 1:1 Help Now