Lesson: HTML5 and CSS
Link to External Pages with Anchor Elements
a elements, also known as
anchor elements, are used to link to content outside of the current page.
Here's a diagram of an
a element. In this case, the
a element is used in the middle of a paragraph element, which means the link will appear in the middle of a sentence.
Here's an example:
<p>Here's a <a href="http://freecodecamp.com"> link to Free Code Camp</a> for you to follow.</p>
a element that links to
http://freecatphotoapp.com and has "cat photos" as its
The content on this page is licensed under Attribution-ShareAlike 4.0 International. Original authors: freeCodeCamp, the content was modified.