Links and Paths
What this is. The anchor element <a> creates a link. Its href attribute says where the link goes.
There are three kinds of destination you will use constantly:
Relative, pointing at another file near this one: about.html
Absolute, pointing at a full address: https://example.com
Fragment, pointing at a place within the current page: #projects
✦ Link text must make sense alone
Screen reader users can pull up a list of every link on a page. If nine of them say click here and read more, that list is useless. Write link text that describes its destination even with no surrounding sentence: Read the case study, not read more.
Mark this lesson complete
Signed in, your progress follows you to every device.