You can use this assignment in your class!
Mastery Progress(100.0%)
i

How would you create a button that, when clicked, directs the user to another webpage?

You answeredJUST NOW

(Student response here)

  • I want to share my response with my peers
  • Share as
    (Student name)
    Options
    • (Student name)
    • Anonymous

Did you like this question?

(Voting helps us personalize your learning experience!)
imgInstructor solution
Jon StapletonSEP 19, 2021, 8:57:46 AM

Wrap a <button> element in an <a> tag.

Was this helpful?

(Voting helps us personalize your learning experience!)
Think you've got it?

Which HTML snippet shows a correctly-written button that, when clicked, directs the user to `http://www.codevirginia.org/"?

Select one of the following options:
  • A.
    <button>
        <a href="http://www.codevirginia.org/">Go to CodeVA</a>
    </button>
    
  • B.
    <a href="http://www.codevirginia.org/">
        <button>Go to CodeVA</button>
    </a>
    
Submit answer

Was this helpful?

(Voting helps us personalize your learning experience!)

You may exit out of this review and return later without penalty.