Now we can create elements that actually help link our pages in our website, or provide links to other websites! The information called "attributes" must be written in the opening tag.
- An "anchor" element is written like a normal text element
- However an anchor requires an "attribute" to work, which is written in the opening tag.
- "href" stands for "Hyper-Link Reference" and tells us where this anchor will take us.
- "href" and "target" are both attributes and must be written in the opening tag.
// This will take us to Apple.com, but will replace our website
<a href="http://www.apple.com">Take me to Apple</a>
//This will take us to YouTube.com in a new tab on our browser
<a href="http://www.youtube.com">Take me to YouTube</a>
**If you havent set up your website yet please watch the first videos under "Setting Up".