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.
Links - HTML Tutorial
From the course: Simplifying Web Development with Accessibility Best Practices
Links
- [Instructor] In its most basic configuration, a link is an anchor tag with an href attribute containing the target URL either to a location in the current document or to a new document. Click the link and the browser navigates to the specified location. We can further specify the functionality of a link using URL schemes, for example, tel engages the phone capability on a device to call a provided number, if the device supports phone capability. And mailto engages email capability on the device to start a new email to the provided address, again, if it's supported on the current device. There are also lesser known and lesser used attributes including download, which is used to trigger a download for whatever file or asset is pointed at in the href attribute as long as it's on the same domain and target which controls in what window the link target is opened. Now, the target attribute is actually a historical remnant of…