<labelclass="label"for="text">Enter your text below.</label> <textareaclass="textarea"id="text"></textarea>
<paria-live="polite">You've written <strong><spanid="word-count">0</span> words</strong> and <strong><spanid="character-count">0</span> characters</strong>.</p>
=======
HTML
1 2 3 4 5 6 7 8 9 10 11
<p>Show some random quote.</p>
<divclass="quote-container"> <blockquotearia-live="polite"> <spanclass="quote-mark">“</span><spanclass="quote-output">Waiting for a new quote...</span> </blockquote> </div>
/* Changes to the content in #word-count and #character-count should be announced to screen reader users. Test this with an actual screen reader to hear how the announcements are actually made. */
console.log(quotesArr); }).catch(function (error) { quoteOutput.innerHTML = '[Something went wrong, sorry!] I have a joke for you... The government in this town is excellent, and uses your tax dollars efficiently.'; }); };