Update link-to-external-pages-with-anchor-elements.english.md
If you write "`anchor` element" instead of "`a` element", you should also write "`hyperreference` attribute", instead of "`href` attribute". Suggestion: write "`a` (_anchor_) element", or "anchor (`a`) element", to communicate the element name explicitly and gloss it at the same time. The `<code>` sections should be valid code as far as possible.
This commit is contained in:
@ -7,8 +7,8 @@ videoUrl: 'https://scrimba.com/p/pVMPUv/c8EkncB'
|
||||
|
||||
## Description
|
||||
<section id='description'>
|
||||
You can use <code>anchor</code> elements to link to content outside of your web page.
|
||||
<code>anchor</code> elements need a destination web address called an <code>href</code> attribute. They also need anchor text. Here's an example:
|
||||
You can use <code>a</code> (_anchor_) elements to link to content outside of your web page.
|
||||
<code>a</code> elements need a destination web address called an <code>href</code> attribute. They also need anchor text. Here's an example:
|
||||
<code><a href="https://freecodecamp.org">this links to freecodecamp.org</a></code>
|
||||
Then your browser will display the text <strong>"this links to freecodecamp.org"</strong> as a link you can click. And that link will take you to the web address <strong>https://www.freecodecamp.org</strong>.
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user