How do you change the name of a link?

How to Change a Link's Name

  • Answer:

    The "name" property gives programmers the ability to call different elements located on a web page, including the link. A link has a "name" and an "id" property. The name property is commonly used in HTML files, and it's used in Javascript functions. You can change the name property of any link in your HTML page by simply changing the text withing the tag. Difficulty: Moderate Instructions Open the HTML file in your favorite text editor such as Notepad. You can also use more advanced editors such as Notepadd++ or Visual Studio, which are used to color code applications for easier editing. Scroll down to your link tag. A link tag begins with "<a>" and ends with "</a>." The "name" property is located within the "<a>" tag. Change the value of the name property in the link tag. For instance, the following code edits the name property for a link: <a name="myNewValue">Click Me </a> Save the code and open it with your web browser. This tests the changes for your HTML code. The name value is invisible for the user, but testing the code verifies no mistakes were made in the HTML syntax.

Lysis at eHow old Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.