From the course: Simplifying Web Development with Accessibility Best Practices
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Link and button basics - HTML Tutorial
From the course: Simplifying Web Development with Accessibility Best Practices
Link and button basics
- [Instructor] HTML has two elements dedicated to direct interactivity as in click or touch or interact with this element and something happens: the anchor tag or link and the button element. Out of the box, they present quite differently. The link is a string of blue text with an underline and it changes colors depending on the state. The button is a somewhat skeuomorphic button that simulates the appearance of an actual physical button that is being pressed into the page and then pops back up again. Both links and buttons have various states with corresponding CSS pseudo classes. We have hover, which is triggered when the user hovers over the element using a pointing device, usually a mouse. We have active, which triggers any time the item is activated by the user actually clicking or selecting it. You'll see the active state if you click your mouse and hold the mouse button down. We have focus, meaning the element is…