Hyperlinks

Hyperlinks are created with anchor elements, which generally look like:

<a href="https://www.udacity.com">Udacity</a>

and render on the page like this: Udacity.

Inside the opening a tag there is href, which stands for "reference." This is called an attribute. Attributes like href describe the properties of HTML elements.

  • There is a space between a and href.
  • There are no spaces around the =.
  • The website has two " around it.
  • There are no spaces between the href attribute and the > of the opening tag.
原文地址:https://www.cnblogs.com/weiweim/p/8479690.html