Learn
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:
- Any valid URL can be used for the value of the
href
attribute. - The URL must be enclosed with quotation marks.
- 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
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.