HTML CSS Reference/HTML Attributes Reference/name

Материал из Web эксперт
Перейти к: навигация, поиск

"name" Example

    
<HTML>
<head><Title>Example For name</Title></head>
<BODY>
<a href="#bottom">Go to the bottom of this page</a>
<br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br>
<p name="bottom"></p>
</BODY>
</HTML>



name is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<a>                             <applet>                      |
|                |<button>                        <embed>                       |
|                |<form>                          <frame>                       |
|                |<frameset>                      <iframe>                      |
|                |<img>                           <input type="button">         |
|                |<input type="checkbox">         <input type="file">           |
|                |<inputtype="hidden">            <input type="image">          |
|                |<input type="password">         <inputtype="radio">           |
|                |<input type="reset">            <input type="submit">         |
|                |<input type="text">             <link>                        |
|                |<map>                           <object>                      |
|                |<param>                         <rt>                          |
|                |<ruby>                          <select>                      |
|                |<textarea>                                                    |
+----------------+--------------------------------------------------------------+



"name" Syntax and Note

Note:
    
This attribute sets the element name or the target for an anchor <a> element. 
This attribute also identifies the elements sent to the server.
HTML 4.0 favors the id attribute.
    
Syntax:
    
<element name="value"> . . . </element>