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:
Jean Jordaan
2019-03-16 15:50:13 +07:00
committed by GitHub
parent 838112967b
commit 36000eeb36

View File

@ -7,8 +7,8 @@ videoUrl: 'https://scrimba.com/p/pVMPUv/c8EkncB'
## Description ## Description
<section id='description'> <section id='description'>
You can use <code>anchor</code> elements to link to content outside of your web page. You can use <code>a</code> (_anchor_) 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: <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>&#60;a href="https://freecodecamp.org">this links to freecodecamp.org&#60;/a&#62;</code> <code>&#60;a href="https://freecodecamp.org">this links to freecodecamp.org&#60;/a&#62;</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>. 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> </section>