001/*
002 * Copyright (c) 2003 World Wide Web Consortium,
003 * (Massachusetts Institute of Technology, Institut National de
004 * Recherche en Informatique et en Automatique, Keio University). All
005 * Rights Reserved. This program is distributed under the W3C's Software
006 * Intellectual Property License. This program is distributed in the
007 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009 * PURPOSE.
010 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011 */
012
013package org.w3c.dom.html2;
014
015/**
016 * Form field label text. See the LABEL element definition in HTML 4.01.
017 * <p>See also the <a href='http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109'>Document Object Model (DOM) Level 2 HTML Specification</a>.
018 */
019public interface HTMLLabelElement extends HTMLElement {
020    /**
021     * Returns the <code>FORM</code> element containing this control. Returns
022     * <code>null</code> if this control is not within the context of a
023     * form.
024     */
025    public HTMLFormElement getForm();
026
027    /**
028     * A single character access key to give access to the form control. See
029     * the accesskey attribute definition in HTML 4.01.
030     */
031    public String getAccessKey();
032    /**
033     * A single character access key to give access to the form control. See
034     * the accesskey attribute definition in HTML 4.01.
035     */
036    public void setAccessKey(String accessKey);
037
038    /**
039     * This attribute links this label with another form control by
040     * <code>id</code> attribute. See the for attribute definition in HTML
041     * 4.01.
042     */
043    public String getHtmlFor();
044    /**
045     * This attribute links this label with another form control by
046     * <code>id</code> attribute. See the for attribute definition in HTML
047     * 4.01.
048     */
049    public void setHtmlFor(String htmlFor);
050
051}