HTML CSS Reference/HTML Attributes Reference/id

Материал из Web эксперт
Версия от 11:20, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"id" Example

   <source lang="html4strict">

<HTML> <BODY> <a href="#jumpto">Scroll down to the bottom paragraph</a>









































This is the last paragraph on the page

</BODY> </HTML>

     </source>
   
  


id is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<a> <acronym> | | |<address> <applet> | | |<area> | | |<base> <basefont> | | | <bgsound> |

| |
|

| |<body>
| | |<button> |

| |
|

| | <col> | | |<colgroup> <comment> | | |<custom>

| | | |

| |<dir>
| | |
| | | <embed> | | |<fieldset> | | |<form> <frame> | | |<frameset> <head> | | |<hn>
|

| |<html> | | |<iframe> <img> | | |<input type="button"> <inputtype="checkbox"> | | |<input type="file"> <input type="hidden"> | | |<input type="image"> <input type="password"> | | |<input type="radio"> <input type="reset"> | | |<inputtype="submit"> <input type="text"> | | | <isindex> | | | <label> |

| |<legend>
  • | | |<link> <listing> | | |<map> <marquee> | | |<menu> <nobr> | | |<noframes> <noscript> | | |<object>
      | | |<option>

      | | |<param>

                               |
      |                |                                                       |
      |                |                                                     |
      |                |                          <script>                      |
      |                |<select>                                               |
      |                |                                                |
      |                |                        <style>                       |
      |                |                                                    |
      |                |                         <tbody>                       |
      |                |                          |
      |                |                             
        | | | | | |<xml> <xmp> | +----------------+--------------------------------------------------------------+ </source>

        "id" Syntax and Note

        <source lang="html4strict"> Note:

        This attribute defines the id that can be used to reference the element. It is preferable to use the id attribute than to the name attribute. Name attribute is not available to all the HTML elements, whereas the id attribute is.

        Syntax:

        <element ID="value"> . . . </element>


        </source>

      <textarea> | | |<tfoot> |

      | |<thead> <title> |

      | |