The quality of a link is determined by the authority and relevance of the linking website. Links from high-authority and relevant websites are more effective for link building than links from low-authority or irrelevant websites.