id and name attributes of HTML 4.01 and XHTML 1
问题 In HTML, the name attribute may be used for the elements a, applet, form, frame, iframe, img, and map . The name attribute and the id attribute may be used in HTML to identify document fragments. XHTML documents must use id instead of name for identifying document fragments in the aforementioned elements. In fact, the name attribute for these elements has been deprecated in the XHTML 1.0 specification. Then how do they replace the requirement of name attribute in XHTML? Because, for some tags