QuizzesText, Links and Buttons — Concept Check
intermediate
html-css

Text, Links and Buttons — Concept Check

Questions on Text, Links and Buttons. A link goes somewhere, a button does something. Getting that one distinction right fixes more accessibility problems than any ARIA attribute.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Text, Links and Buttons — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A developer uses a <div> element with an onClick event to navigate to a different page. What is the main issue with this approach?

    • AThe <div> will open in a new tab with Ctrl-click.
    • BThe <div> will be announced as a link.
    • CThe <div> will create a browser history entry.
    • DThe <div> is not keyboard accessible.
  2. 2.In a form, a developer uses a <button> element for a 'Cancel' action without specifying the type. What is the likely outcome?

    • AThe form will be reset.
    • BThe button will not work.
    • CThe page will reload.
    • DThe form will be submitted.
  3. 3.Which element should be used to perform an action on the current page without changing the URL?

    • A<a href="#">
    • B<div onClick="">
    • C<button>
    • D<span onClick="">
  4. 4.A screen reader lists links on a page. Which link text is most accessible?

    • AClick here
    • BRead more
    • CHere
    • DSolve Two Sum
  5. 5.A developer uses an <a> tag with href="#" and an onClick event to save data. What problem does this cause?

    • AThe action will not be announced as a button.
    • BThe page will reload on save.
    • CThe link will be keyboard accessible.
    • DThe link will open in a new tab.
  6. 6.Why should you never remove the focus outline from links without a replacement?

    • AIt affects the link's keyboard accessibility.
    • BIt prevents the link from being announced.
    • CIt stops the link from opening in a new tab.
    • DIt makes the link look inactive.
  7. 7.Which of the following is true about using <strong> and <em> tags?

    • AThey are equivalent to <b> and <i> tags.
    • BThey provide semantic meaning and are announced.
    • CThey are purely visual and not announced.
    • DThey should be used for styling only.
  8. 8.A developer wants to ensure a link opens in a new tab and is secure. Which attributes should they use?

    • Atarget="_blank" rel="nofollow"
    • Btarget="_self" rel="noopener noreferrer"
    • Crel="noopener noreferrer" only
    • Dtarget="_blank" rel="noopener noreferrer"