Site Structure

Anchor Elements

Nice work! The webpage is starting to come together.

What if you wanted to link users to a different webpage? The HTML anchor element makes it possible to do this with a single click.

<a href="http://google.com"> Click here for Google!</a>

Anchor elements use an attribute to link users to websites. Attributes customize the behavior or appearance of HTML elements. Anchor elements use the href attribute, which specifies the webpage to link to. In the example above, the text "Click here for Google!" links to http://google.com.

IMPORTANT: Web addresses, such as http://google.com, have a technical name: URL.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.