Syntax string.link(URL) The link() method converts the string to an instance of the tag, setting the HREF attribute to the URL that is passed.