The name attribute is used to create a named anchor. [1]
When using named anchors you can create links to a specific section on a page, instead of letting your viewer scroll around to find what he/she is looking for. Named anchors are called bookmarks in Expression Web.
NOTE: Not supported in HTML5. Use the global id attribute instead. Specifies the name of an anchor
You can also use the name attribute on the server side to identify the fields in form submits. [2][3]
The name attribute can be an arbitrary string, so a number is a valid name. Even if you dont link to the anchor yourself, adding a name will make it possible for others to link to it in the future.
I belive anchors were initially designed to be two-way, but it turned out to be more useful to link to headlines rather than links, so links and link targets were seperated.
The name attribute is used to create a named anchor. [1]
When using named anchors you can create links to a specific section on a page, instead of letting your viewer scroll around to find what he/she is looking for. Named anchors are called bookmarks in Expression Web.
NOTE: Not supported in HTML5. Use the global id attribute instead. Specifies the name of an anchor
You can also use the name attribute on the server side to identify the fields in form submits. [2][3]
[1] https://www.expression-web-tutorials.com/anchor-tags.html
[2] https://www.w3schools.com/tags/att_name.asp
[3] https://stackoverflow.com/a/1397613
Thanks, I remember it was replaced by the ID attribute, but in this case, it is not being used as a named anchor. It seem more like an index.
The name attribute can be an arbitrary string, so a number is a valid name. Even if you dont link to the anchor yourself, adding a name will make it possible for others to link to it in the future.
I belive anchors were initially designed to be two-way, but it turned out to be more useful to link to headlines rather than links, so links and link targets were seperated.
each link was displayed with a number next to it in parentheses.[1] type the number to go to the link. [1]https://line-mode.cern.ch/www/hypertext/WWW/TheProject.html
1 reply →