Good job! Creating links with the anchor element is a fundamental web development skill.

The diagram to the right illustrates the different parts of the anchor element syntax. In the diagram, notice the following:

  1. Any valid URL can be used for the value of the href attribute.

  2. The URL must be enclosed with quotation marks.

  3. Text between the <a> and </a> tags can be as few or as many words as you would like.

Click Next to learn how to add images to a webpage!

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?