{"id":58,"date":"2022-03-19T09:52:55","date_gmt":"2022-03-19T09:52:55","guid":{"rendered":"https:\/\/staging.brightwhiz.com\/?post_type=topic&p=58"},"modified":"2022-03-19T09:52:56","modified_gmt":"2022-03-19T09:52:56","slug":"html-links","status":"publish","type":"topic","link":"http:\/\/local.tutorials\/topic\/html-links\/","title":{"rendered":"HTML – Links"},"content":{"rendered":"\n
HTML links or hyperlinks are at the root of how the world wide web works. HTML links are used to allow users to jump from page to page by clicking on them. Links can be attached to almost any element.<\/p>\n\n\n\n
The HTML Example: The By default, the linked page will be displayed in the current browser window. This behavior can be changed using the target attribute, which specifies where to open the linked document.<\/p>\n\n\n\n The target attribute can have one of the following values:<\/p>\n\n\n\n<a><\/code> tag defines a hyperlink with the following syntax:<\/p>\n\n\n\n
<a href="url" [other optional attributes]>Link Text<\/a><\/code><\/pre>\n\n\n\n
This example creates a link to Brightwhiz.com<\/strong>.<\/p>\n\n\n\n<!DOCTYPE html>\n<html>\n <head>\n <title>This is document title<\/title>\n <\/head>\t\n <body>\n <p>Click the link below:<\/p>\n <a href="https:\/\/brightwhiz.com">This is a link<\/a>\n <\/body>\t\n<\/html><\/code><\/pre>\n\n\n\n
<a><\/code> element used as a link requires the
href<\/code> attribute, which indicates the link’s destination. The link text “This is a link” in the above example is the part of the link that will be visible to the visitor. Clicking on the link text will send the visitor to the specified URL address.<\/p>\n\n\n\n
The target Attribute<\/h2>\n\n\n\n