{"id":7353,"date":"2021-08-04T05:45:11","date_gmt":"2021-08-04T05:45:11","guid":{"rendered":"https:\/\/www.scmgalaxy.com\/tutorials\/?p=7353"},"modified":"2021-08-04T09:34:45","modified_gmt":"2021-08-04T09:34:45","slug":"html-anchor-tag","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/","title":{"rendered":"HTML: Anchor Tag <a>\u2026 <\/a>"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">We can create hyperlinks using the anchor tag.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What is a Hyperlink?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A hyperlink is a link between web pages and it is used to connect one web page to another.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ex:- &lt;a href=&#8221;https:\/\/www.google.com&#8221;&gt;Visit Google &lt;\/a&gt;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">                     <strong>Anchor Tag Attributes<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Attribute<\/strong><\/td><td><strong>Value<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>href<\/td><td>URL reference<\/td><td>Specifies the URL as a destination web page or a different section of the web page<\/td><\/tr><tr><td>download<\/td><td>filename<\/td><td>Specifies that the target will be downloaded when a user clicks on the hyperlink<\/td><\/tr><tr><td>media<\/td><td>media_query<\/td><td>Specifies what media\/device the linked document is optimized for<\/td><\/tr><tr><td>hreflang<\/td><td>language_code<\/td><td>Specifies the language of the linked document<\/td><\/tr><tr><td>type<\/td><td>media_type<\/td><td>Specifies the media type of the linked document<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">                      <strong>Anchor Tag Attributes<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Attribute<\/strong><\/td><td><strong>Value<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>target<\/td><td>_blank _parent _top framename _self<\/td><td>Opens the linked document in a new window or tab Opens the linked document in the parent frame Opens the linked document in the full body of the window Opens the linked document in a named frame Opens the linked document in the same frame as it was clicked (this is the default)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Ex:- &lt;a href=&#8221;https:\/\/www.google.com&#8221;target=&#8221;_blank&#8221;&gt;Visit Google &lt;\/a&gt;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">                     <strong>Anchor Tag Attributes<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"407\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-17.png\" alt=\"\" class=\"wp-image-7355\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-17.png 892w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-17-300x137.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-17-768x350.png 768w\" sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">                      <strong>href Attribute<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Syntax: &#8211; &lt;a href=\u201cURL&#8221;&gt;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>An absolute URL &#8211; points to another web site.           Ex: &#8211; href=&#8221;http:\/\/www.google.com&#8221;<\/li><li>A relative URL &#8211; points to a file within a web site.      Ex:- href=\u201cpage1.html&#8221;<\/li><li>Link to an element with a specified id within the page.    Ex: &#8211;&nbsp; href=&#8221;#bottom&#8221;<\/li><li>Other protocols.  Ex:- https:\/\/, ftp:\/\/, mailto:, file:, etc..<\/li><li>A script.  Ex:- href=\u2018javascript:alert(\u201cHello\u201d);\u2019<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>                   Download Attribute<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The download attribute specifies that the target will be downloaded when a user clicks on the hyperlink.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ex:- &lt;a href=&#8221;image\/example.jpg&#8221;download=&#8221;nature&#8221;&gt;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">                   <strong>Media Attribute<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The media attribute specifies what media\/device the linked document is optimized for.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This attribute is used to specify that the target URL is designed for special devices (like iPhone and Android etc), speech, or print media.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Value<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>width<\/td><td>Specifies the width of the targeted display area.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (min-width:500px)&#8221;<\/td><\/tr><tr><td>height<\/td><td>Specifies the height of the targeted display area.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (max-height:700px)&#8221;<\/td><\/tr><tr><td>device-width<\/td><td>Specifies the width of the target display\/paper.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (device-width:500px)&#8221;<\/td><\/tr><tr><td>device-height<\/td><td>Specifies the height of the target display\/paper.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (device-height:500px)&#8221;<\/td><\/tr><tr><td>orientation<\/td><td>Specifies the orientation of the target display\/paper.<br>Possible values: &#8220;portrait&#8221; or &#8220;landscape&#8221;<br>Example: media=&#8221;all and (orientation: landscape)&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Value<\/strong><\/td><td><strong>Description<\/strong><strong><\/strong><\/td><\/tr><tr><td>aspect-ratio<\/td><td>Specifies the width\/height ratio of the targeted display area.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (aspect-ratio:16\/9)&#8221;<\/td><\/tr><tr><td>device-aspect-ratio<\/td><td>Specifies the device-width\/device-height ratio of the target display\/paper.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (aspect-ratio:16\/9)&#8221;<\/td><\/tr><tr><td>color<\/td><td>Specifies the bits per color of the target display.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (color:3)&#8221;<\/td><\/tr><tr><td>color-index<\/td><td>Specifies the number of colors the target display can handle.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (min-color-index:256)&#8221;<\/td><\/tr><tr><td>monochrome<\/td><td>Specifies the bits per pixel in a monochrome frame buffer.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;screen and (monochrome:2)&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Value<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>resolution<\/td><td>Specifies the pixel density (dpi or dpcm) of the target display\/paper.<br>&#8220;min-&#8221; and &#8220;max-&#8221; prefixes can be used.<br>Example: media=&#8221;print and (resolution:300dpi)&#8221;<\/td><\/tr><tr><td>scan<\/td><td>Specifies scanning method of a tv display.<br>Possible values are &#8220;progressive&#8221; and &#8220;interlace&#8221;.<br>Example: media=&#8221;tv and (scan:interlace)&#8221;<\/td><\/tr><tr><td>grid<\/td><td>Specifies if the output device is grid or bitmap.<br>Possible values are &#8220;1&#8221; for the grid, and &#8220;0&#8221; otherwise.<br>Example: media=&#8221;handheld and (grid:1)&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Value<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>all<\/td><td>Default. Suitable for all devices<\/td><\/tr><tr><td>aural<\/td><td>Speech synthesizers<\/td><\/tr><tr><td>braille<\/td><td>Braille feedback devices<\/td><\/tr><tr><td>handheld<\/td><td>Handheld devices (small screen, limited bandwidth)<\/td><\/tr><tr><td>projection<\/td><td>Projectors<\/td><\/tr><tr><td>print<\/td><td>Print preview mode\/printed pages<\/td><\/tr><tr><td>screen<\/td><td>Computer screens<\/td><\/tr><tr><td>tty<\/td><td>Teletypes and similar media using a fixed-pitch character grid<\/td><\/tr><tr><td>tv<\/td><td>Television type devices (low resolution, limited scroll ability)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>And<\/li><li>Not<\/li><li>,(OR)<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Ex:- media=&#8221;print and (resolution:300dpi)&#8221;&gt;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>                   hreflang Attribute<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"828\" height=\"441\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-18.png\" alt=\"\" class=\"wp-image-7360\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-18.png 828w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-18-300x160.png 300w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-18-768x409.png 768w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">                       <strong>Type Attribute<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">http:\/\/www.iana.org\/assignments\/media-types\/media-types.xhtml<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">                       <strong>rel Attribute<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Value<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td>alternate<\/td><td>Links to an alternate version of the document (i.e. print page, translated or mirror)<\/td><\/tr><tr><td>author<\/td><td>Links to the author of the document<\/td><\/tr><tr><td>bookmark<\/td><td>Permanent URL used for bookmarking<\/td><\/tr><tr><td>help<\/td><td>Links to a help document<\/td><\/tr><tr><td>license<\/td><td>Links to copyright information for the document<\/td><\/tr><tr><td>next<\/td><td>The next document in a selection<\/td><\/tr><tr><td>nofollow<\/td><td>Links to an unendorsed document, like a paid link.<br>(&#8220;nofollow&#8221; is used by Google, to specify that the Google search spider should not follow that link)<\/td><\/tr><tr><td>noreferrer<\/td><td>Specifies that the browser should not send a HTTP referer header if the user follows the hyperlink<\/td><\/tr><tr><td>prefetch<\/td><td>Specifies that the target document should be cached<\/td><\/tr><tr><td>prev<\/td><td>The previous document in a selection<\/td><\/tr><tr><td>search<\/td><td>Links to a search tool for the document<\/td><\/tr><tr><td>tag<\/td><td>A tag (keyword) for the current document<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">                     <strong>Link Color<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>By default, links will appear as follows in all browsers:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An unvisited link is underlined and blue<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A visited link is underlined and purple<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An active link is underlined and red<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>link<\/strong> \u2013 specifies the color of the hyperlink that has not been visited or clicked<br>&nbsp; before on a webpage<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>vlink<\/strong> &#8211; specifies the color of hyperlink that has been visited before on a web page<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>alink<\/strong> \u2013 specifies the color of currently active links<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We can create hyperlinks using the anchor tag. What is a Hyperlink? A hyperlink is a link between web pages [&hellip;]<\/p>\n","protected":false},"author":34,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[4864],"tags":[5872,5874,5876,5873,5875,5878,4459,5469,5871,5883,5882,5877,5881,5880,5879],"class_list":["post-7353","post","type-post","status-publish","format-standard","hentry","category-html","tag-a-tag-in-html","tag-anchor-tag-attributes","tag-download-attribute","tag-how-to-link-text-in-html","tag-href-attribute","tag-hreflang-attribute","tag-html","tag-html-tag","tag-hyperlink-in-html","tag-link-color","tag-link-color-in-html","tag-media-attribute","tag-rel-attribute","tag-rel-attribute-in-html","tag-type-attribute-in-html"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HTML: Anchor Tag \u2026  - scmGalaxy<\/title>\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.scmgalaxy.com\/tutorials\/html-anchor-tag\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML: Anchor Tag \u2026  - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"We can create hyperlinks using the anchor tag. What is a Hyperlink? A hyperlink is a link between web pages [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-04T05:45:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-04T09:34:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-17.png\" \/>\n<meta name=\"author\" content=\"vikashdev k\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"vikashdev k\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/\"},\"author\":{\"name\":\"vikashdev k\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\"},\"headline\":\"HTML: Anchor Tag \u2026\",\"datePublished\":\"2021-08-04T05:45:11+00:00\",\"dateModified\":\"2021-08-04T09:34:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/\"},\"wordCount\":934,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-17.png\",\"keywords\":[\"a tag in html\",\"anchor tag attributes\",\"download attribute\",\"how to link text in html\",\"href attribute\",\"hreflang attribute\",\"HTML\",\"html tag\",\"hyperlink in html\",\"link color\",\"link color in html\",\"media attribute\",\"rel attribute\",\"rel attribute in html\",\"type attribute in html\"],\"articleSection\":[\"HTML\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/\",\"name\":\"HTML: Anchor Tag \u2026 - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-17.png\",\"datePublished\":\"2021-08-04T05:45:11+00:00\",\"dateModified\":\"2021-08-04T09:34:45+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-17.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/image-17.png\",\"width\":892,\"height\":407},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/html-anchor-tag\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML: Anchor Tag \u2026\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ec4d1004b3acffc7df65899e880c7515\",\"name\":\"vikashdev k\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g\",\"caption\":\"vikashdev k\"},\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/vikashdev\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML: Anchor Tag \u2026  - scmGalaxy","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.scmgalaxy.com\/tutorials\/html-anchor-tag\/","og_locale":"en_US","og_type":"article","og_title":"HTML: Anchor Tag \u2026  - scmGalaxy","og_description":"We can create hyperlinks using the anchor tag. What is a Hyperlink? A hyperlink is a link between web pages [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/","og_site_name":"scmGalaxy","article_published_time":"2021-08-04T05:45:11+00:00","article_modified_time":"2021-08-04T09:34:45+00:00","og_image":[{"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-17.png","type":"","width":"","height":""}],"author":"vikashdev k","twitter_card":"summary_large_image","twitter_misc":{"Written by":"vikashdev k","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/"},"author":{"name":"vikashdev k","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515"},"headline":"HTML: Anchor Tag \u2026","datePublished":"2021-08-04T05:45:11+00:00","dateModified":"2021-08-04T09:34:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/"},"wordCount":934,"commentCount":0,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-17.png","keywords":["a tag in html","anchor tag attributes","download attribute","how to link text in html","href attribute","hreflang attribute","HTML","html tag","hyperlink in html","link color","link color in html","media attribute","rel attribute","rel attribute in html","type attribute in html"],"articleSection":["HTML"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/","name":"HTML: Anchor Tag \u2026 - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-17.png","datePublished":"2021-08-04T05:45:11+00:00","dateModified":"2021-08-04T09:34:45+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-17.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2021\/08\/image-17.png","width":892,"height":407},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/html-anchor-tag\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"HTML: Anchor Tag \u2026"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/ec4d1004b3acffc7df65899e880c7515","name":"vikashdev k","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/738fe2694a5769295d6bbe57066232fcf8351e09ce1090f200c7b34f770fa61b?s=96&d=mm&r=g","caption":"vikashdev k"},"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/vikashdev\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/7353","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=7353"}],"version-history":[{"count":3,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/7353\/revisions"}],"predecessor-version":[{"id":7365,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/7353\/revisions\/7365"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=7353"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=7353"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=7353"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}