{"id":953,"date":"2011-09-02T11:45:49","date_gmt":"2011-09-02T11:45:49","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2011\/09\/02\/creating-link-new-web-page\/"},"modified":"2025-01-17T14:41:22","modified_gmt":"2025-01-17T19:41:22","slug":"creating-link-new-web-page","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/","title":{"rendered":"Using the Anchor Tag to Create Links"},"content":{"rendered":"<p>There are two types of links to pages you can create. There is the <strong><em>Internal Link<\/em><\/strong> and the <strong><em>External Link<\/em><\/strong>. An <strong><em>Internal Link<\/em><\/strong> is a link in your site that navigates the visitor to another page in your website. The <strong><em>External Link<\/em><\/strong> navigates the visitor away from your site to another website in the internet (like https:\/\/www.google.com). Below are examples of an external and internal link. The <code>&lt;a&gt;<\/code> in an HTML tag called an <em>anchor<\/em>. The anchor can have different attributes inside. The <em>href<\/em>\u00a0attribute is the location the link takes you when clicked.<\/p>\n<p class=\"alert alert-info\"><strong>Note!<\/strong> If you are using a Content Management System like Drupal, Joomla, WordPress or the Premium Web Builder, you will use their WYSIWYG editor to create links. For more information see the following links.<\/p>\n<h2>Creating an Internal Link in Your Website<\/h2>\n<p>This first link is the &#8220;<em>Internal Link<\/em>&#8220;. Internal links reference to a file location on your server. The path to the file location is placed in the &#8220;<em>href<\/em>&#8221; attribute. To link a page in your own site you reference the location of the file in the <em>href<\/em> attribute. For Example, if you place a file called <em>nextpage.html<\/em> in <a href=\"\/support\/website\/where-to-upload-files\/\">your public_html for your main domain<\/a>, you simply put the file name like below.<\/p>\n<pre class=\"code_block\">&lt;a href=\"nextpage.html\"&gt;This text will now be a link&lt;\/a&gt;<\/pre>\n<p>To reference a file in a subfolder, you include the subfolder name in the &#8220;<em>href<\/em>&#8221; attribute For example, if you have <em>nextpage.html<\/em> in a folder called <em>subfolder<\/em>, you will create the link like the following:<\/p>\n<pre class=\"code_block\">&lt;a href=\"subfolder\/nextpage.html\"&gt;This text will now be a link&lt;\/a&gt;<\/pre>\n<p class=\"alert alert-info\"><strong>Important!<\/strong> Don&#8217;t forget to close out the tag with the proper closing tag which is <code>&lt;\/a&gt;<\/code>. If you don&#8217;t close the tag the entire page below the tag will become a hyperlink as well.<\/p>\n<h2>Creating an External Link to Another Site<\/h2>\n<p>Creating an &#8220;<em>External Link<\/em>&#8221; only requires you to have the link to the page. If you want to link your site to inmotionhosting.com for example, you would copy the url in the address bar when you are at inmotionhosting.com, and paste the url in the &#8220;<em>href<\/em>&#8221; of your anchor \/ link like the following:<\/p>\n<pre class=\"code_block\">&lt;a href=\"https:\/\/www.inmotionhosting.com\"&gt;Text that will be a link&lt;\/a&gt;<\/pre>\n<p>This will make the link go to inmostionhosting.com when clicked.<\/p>\n<h2>Basic List of Necessary Anchor Attributes<\/h2>\n<p>Below is a table on basic anchor tag attributes. There are many more attributes available to use in anchor tags; however we will only cover the basic 4 attributes most commonly used.<\/p>\n<table class=\"article_table\" border=\"0\">\n<tbody>\n<tr>\n<th style=\"text-align: center;\" colspan=\"2\">Basic Anchor Attributes<\/th>\n<\/tr>\n<tr>\n<th width=\"87\">href<\/th>\n<td width=\"936\">This attribute specifies where the link will navigate to.<\/p>\n<pre style=\"margin: 5px 0px 5px 20px;\">&lt;a <strong>href=\"nextpage.html\"<\/strong>&gt;This text will now be a link&lt;\/a&gt;<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<th>target<\/th>\n<td>You can have your links open in a new tab or open in the same window with the target.<\/p>\n<pre style=\"margin: 5px 0px 5px 20px;\">_blank (Opens in a new tab)\n_parent (Opens in the parent frame.)\n_self (Opens in the same window.)\n_top (Opens the same as self except works with frames.)<\/pre>\n<p>The below is an example of the <em>_blank<\/em>target.<\/p>\n<pre style=\"margin: 5px 0px 5px 20px;\">&lt;a href=\"nextpage.html\" <strong>target=\"_blank\"<\/strong>&gt;This text will now be a link&lt;\/a&gt;<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<th>title<\/th>\n<td>Shows information about the link. When you hover your mouse over a link with a title tag, a little pop up will display the text in this attribute.<\/p>\n<pre style=\"margin: 5px 0px 5px 20px;\">&lt;a href=\"nextpage.html\" <strong>title=\"Click here to see this link\"<\/strong>&gt;This text will now be a link&lt;\/a&gt;<\/pre>\n<\/td>\n<\/tr>\n<tr>\n<th>name<\/th>\n<td>This is the name of the anchor, This is used for linking to a specific spot in a page. For example, if you want to navigate to the bottom of your web page, you can add a name attribute like:<\/p>\n<pre style=\"margin: 5px 0px 5px 20px;\">&lt;a name=\"bottom\"&gt;bottom&lt;\/a&gt;<\/pre>\n<p>When you create this name you can reference your site like:<\/p>\n<pre style=\"margin: 5px 0px 5px 20px;\">https:\/\/example.com\/#bottom<\/pre>\n<p>Visiting this will send the web surfer to the bottom of your main page.<\/p>\n<pre style=\"margin: 5px 0px 5px 20px;\">&lt;a href=\"nextpage.html\" <strong>name=\"location_of_page\"<\/strong>&gt;This text will now be a link&lt;\/a&gt;<\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Please check the next article on <a title=\"Click here to view the next article\" href=\"\/support\/email\/creating-an-email-link-in-your-webpage\/\">Creating an Email Link in your Web page<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are two types of links to pages you can create. There is the Internal Link and the External Link. An Internal Link is a link in your site that navigates the visitor to another page in your website. The External Link navigates the visitor away from your site to another website in the internet<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/\"> Read More ><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4288],"tags":[],"class_list":["post-953","post","type-post","status-publish","format-standard","hentry","category-website"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using the Anchor Tag to Create Links | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"The basics of hyperlinks explained. Learn how to make a basic hyperlink in your webpage.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using the Anchor Tag to Create Links | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"The basics of hyperlinks explained. Learn how to make a basic hyperlink in your webpage.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2011-09-02T11:45:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-17T19:41:22+00:00\" \/>\n<meta name=\"author\" content=\"Brad Markle\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brad Markle\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/\"},\"author\":{\"name\":\"Brad Markle\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\"},\"headline\":\"Using the Anchor Tag to Create Links\",\"datePublished\":\"2011-09-02T11:45:49+00:00\",\"dateModified\":\"2025-01-17T19:41:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/\"},\"wordCount\":549,\"commentCount\":5,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Website\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/\",\"name\":\"Using the Anchor Tag to Create Links | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2011-09-02T11:45:49+00:00\",\"dateModified\":\"2025-01-17T19:41:22+00:00\",\"description\":\"The basics of hyperlinks explained. Learn how to make a basic hyperlink in your webpage.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using the Anchor Tag to Create Links\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf\",\"name\":\"Brad Markle\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using the Anchor Tag to Create Links | InMotion Hosting","description":"The basics of hyperlinks explained. Learn how to make a basic hyperlink in your webpage.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/","og_locale":"en_US","og_type":"article","og_title":"Using the Anchor Tag to Create Links | InMotion Hosting","og_description":"The basics of hyperlinks explained. Learn how to make a basic hyperlink in your webpage.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2011-09-02T11:45:49+00:00","article_modified_time":"2025-01-17T19:41:22+00:00","author":"Brad Markle","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Brad Markle","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/"},"author":{"name":"Brad Markle","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf"},"headline":"Using the Anchor Tag to Create Links","datePublished":"2011-09-02T11:45:49+00:00","dateModified":"2025-01-17T19:41:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/"},"wordCount":549,"commentCount":5,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Website"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/","name":"Using the Anchor Tag to Create Links | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2011-09-02T11:45:49+00:00","dateModified":"2025-01-17T19:41:22+00:00","description":"The basics of hyperlinks explained. Learn how to make a basic hyperlink in your webpage.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/creating-link-new-web-page\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"Using the Anchor Tag to Create Links"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/5ae05d1210b0ef63c437ccedce2799bf","name":"Brad Markle","url":"https:\/\/www.inmotionhosting.com\/support\/author\/bradm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=953"}],"version-history":[{"count":5,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/953\/revisions"}],"predecessor-version":[{"id":129026,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/953\/revisions\/129026"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}