HTML Links – Hyperlinks
HTML uses a hyperlink to jump to another web document. HTML anchor or <a> tag define a hyperlink. The <a> tag can lead to any resource on the Web: an image, a sound file, an HTML page, a movie, and so on.
Syntax
<a href="url">link content</a>
The main attribute of the <a> tag is the href attribute. The href attribute point to the link’s destination.
The link content is the section that will be seen to the reader.
Example
<!DOCTYPE html> <html> <body> <a href="https://www.oixiesoft.com/">Visit Oixiesoft.com!</a> </body> </html>
Output
HTML Links – The target Attribute
By default, the new page will open in the same anchor window.
The target attribute indicates where to open the linked page.
target = “_self” default browser window
target = “_parent” open the new document in the base frame.
target = “_top” open the new document into the entire browser window.
target = “_blank” open the new document in a new window.
Example
<!DOCTYPE html> <html> <body> <a href="https://www.oixiesoft.com/" target="_blank">Visit Oixiesoft.com!</a> </body> </html>