Are there two ways to jump to a fragment identifier in HTML? -
i thought standard way specify fragment identifier <a name="foo"></a>.
<a href="#foo">go foo</a> <a name="foo"></a> <!-- obsolete method, seems --> <p>some content under anchor name</p> but seems old way, , new way using id, this:
<a href="#bar">go bar</a> <p id="bar">some content under p id</p> in fact, w3c validator says name obsolete <a> element. there 2 ways jump fragment identifier 1 of them obsolete? (and when did happen?)
(there other questions difference between id , name, 1 fragment identifier)
so there 2 ways jump fragment identifier 1 of them obsolete?
there 2 ways identify fragment.
(there 2 ways jump one, since can url or write pile of javascript scroll page).
and when did happen?
id introduced in 1996 when html 4 came out. obsoleted name attribute anchors.
name made officially obsolete in html 5 in 2014 (or in living html on date i'm not going try figure out).
Comments
Post a Comment