HTML Introduction to HTML and CSS HTML: The Structural Foundation of Web Pages and Applications Review: Common HTML tags

Fernando Cristobal Gomez De La Cruz
Fernando Cristobal Gomez De La Cruz
2,964 Points

What is the purpose of an href attribute on an anchor tag?

What is the purpose of an href attribute on an anchor tag?

2 Answers

The href attribute specifies the URL of the page the link goes to and If the href attribute is not present, the <a> tag is not a hyperlink..

Moderator Edit: Moved reply to Answer section from comments.