Make link text more descriptive (#35218)
* Make link text more descriptive Make link text more descriptive for improved accessibility. * Add mention of MDN to link description As suggested by Sidak Singh Aulakh, added reference to MDN web docs which is the link's destination. * Update curriculum/challenges/english/03-front-end-libraries/jquery/change-text-inside-an-element-using-jquery.english.md Adjust link wording Co-Authored-By: RobertoJBeltran <45843750+RobertoJBeltran@users.noreply.github.com>
This commit is contained in:
committed by
Manish Giri
parent
542cf6a68f
commit
fb8dcd4dbc
@ -12,7 +12,7 @@ Here's how you would rewrite and emphasize the text of our heading:
|
|||||||
<code>$("h3").html("<em>jQuery Playground</em>");</code>
|
<code>$("h3").html("<em>jQuery Playground</em>");</code>
|
||||||
jQuery also has a similar function called <code>.text()</code> that only alters text without adding tags. In other words, this function will not evaluate any HTML tags passed to it, but will instead treat it as the text you want to replace the existing content with.
|
jQuery also has a similar function called <code>.text()</code> that only alters text without adding tags. In other words, this function will not evaluate any HTML tags passed to it, but will instead treat it as the text you want to replace the existing content with.
|
||||||
Change the button with id <code>target4</code> by emphasizing its text.
|
Change the button with id <code>target4</code> by emphasizing its text.
|
||||||
Check this <a href="https://developer.mozilla.org/en/docs/Web/HTML/Element/em" target="_blank">link</a> to know more on the difference between <code><i></code> and <code><em></code> and their uses.
|
<a href="https://developer.mozilla.org/en/docs/Web/HTML/Element/em" target="_blank">View the MDN web docs for <em></a> to learn the difference between <code><i></code> and <code><em></code> and their uses.
|
||||||
Note that while the <code><i></code> tag has traditionally been used to emphasize text, it has since been coopted for use as a tag for icons. The <code><em></code> tag is now widely accepted as the tag for emphasis. Either will work for this challenge.
|
Note that while the <code><i></code> tag has traditionally been used to emphasize text, it has since been coopted for use as a tag for icons. The <code><em></code> tag is now widely accepted as the tag for emphasis. Either will work for this challenge.
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user