HTML TutorialLesson 14Free preview
HTML Links
This lesson is part of HTML · All levels
Summary
Links are created with the <a> element and the href attribute that indicates the address destination. The link can be absolute with the full URL or relative to the path to the file on the same project. The target attribute determines whether the link is opened in the same tab or a new tab.
Key points
- Link is created with <a href="alamat">link text </a>
- The absolute URL includes http(s), domain, and full path
- Relative URLs point to files relative to the current page
- Target="_blank" opens the link in the new tab
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.