Those "clickable things" found on webpages are created with the <a> tag and are called links. The link address (called an URL) is specified in the href attribute. When you click on the link, the browser knows where to take you.
| HTML file: | Displayed by browser: |
|---|---|
|
<!DOCTYPE html>
<html> <body> <a href="http://www.w3schools.com">Click here to link to school.</a> </body> </html> |
Click here to link to school. |
Attributes are used to provide additional information, to further the power of the HTML tag it is partnered with. We will learn more about attributes later.