{"id":88,"date":"2026-04-10T08:31:15","date_gmt":"2026-04-10T08:31:15","guid":{"rendered":"https:\/\/gigz.pk\/html\/?post_type=lesson&#038;p=88"},"modified":"2026-04-26T19:11:46","modified_gmt":"2026-04-26T19:11:46","slug":"anchor-tags-a","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/html\/index.php\/lesson\/anchor-tags-a\/","title":{"rendered":"Anchor Tags (<a><\/a>)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Anchor tags are used in HTML to create links. These links allow users to move from one page to another, open websites, send emails, or navigate within the same page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is an Anchor Tag<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The anchor tag is written as &lt;a&gt;. It is one of the most important tags in HTML because it connects web pages together and helps users navigate the internet.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Basic Structure<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The anchor tag uses the href attribute to define the destination of the link.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Anchor Tag<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;a href=&#8221;https:\/\/example.com&#8221;&gt;Visit Website&lt;\/a&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Internal Links<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Internal links are used to connect different pages within the same website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Internal Link<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;a href=&#8221;about.html&#8221;&gt;About Us&lt;\/a&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>External Links<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">External links are used to open other websites.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of External Link<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;a href=&#8221;https:\/\/google.com&#8221;&gt;Go to Google&lt;\/a&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Email Links<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Anchor tags can also be used to send emails using mailto.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Email Link<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;a href=&#8221;mailto:info@example.com&#8221;&gt;Send Email&lt;\/a&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Phone Links<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can also create clickable phone numbers using tel.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Phone Link<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;a href=&#8221;tel:+1234567890&#8243;&gt;Call Us&lt;\/a&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Anchor tags are used to create links in HTML. They help users navigate between pages, open external websites, send emails, and make phone calls directly from a webpage.<\/p>\n\n\n<div class=\"yoast-breadcrumbs\"><span><span><a href=\"https:\/\/gigz.pk\/html\/\">Home<\/a><\/span> \u00bb <span class=\"breadcrumb_last\" aria-current=\"page\">Training: HTML Fundamentals (Beginner) > Module: Links &#038; Navigation > Anchor Tags ()<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1777230585302\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":16,"template":"","class_list":["post-88","lesson","type-lesson","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Anchor Tags () - HTML learning mastery<\/title>\n<meta name=\"description\" content=\"Learn HTML anchor tags with examples. Create links, emails, and phone calls easily using href, mailto, and tel.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/anchor-tags-a\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Anchor Tags () - HTML learning mastery\" \/>\n<meta property=\"og:description\" content=\"Learn HTML anchor tags with examples. Create links, emails, and phone calls easily using href, mailto, and tel.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/anchor-tags-a\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML learning mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-26T19:11:46+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/anchor-tags-a\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/anchor-tags-a\\\/\",\"name\":\"Anchor Tags () - HTML learning mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\"},\"datePublished\":\"2026-04-10T08:31:15+00:00\",\"dateModified\":\"2026-04-26T19:11:46+00:00\",\"description\":\"Learn HTML anchor tags with examples. Create links, emails, and phone calls easily using href, mailto, and tel.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/anchor-tags-a\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/anchor-tags-a\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/anchor-tags-a\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Training: HTML Fundamentals (Beginner) > Module: Links & Navigation > Anchor Tags ()\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\",\"name\":\"HTML learning mastery\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gigz.pk\\\/html\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Anchor Tags () - HTML learning mastery","description":"Learn HTML anchor tags with examples. Create links, emails, and phone calls easily using href, mailto, and tel.","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:\/\/gigz.pk\/html\/index.php\/lesson\/anchor-tags-a\/","og_locale":"en_US","og_type":"article","og_title":"Anchor Tags () - HTML learning mastery","og_description":"Learn HTML anchor tags with examples. Create links, emails, and phone calls easily using href, mailto, and tel.","og_url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/anchor-tags-a\/","og_site_name":"HTML learning mastery","article_modified_time":"2026-04-26T19:11:46+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["WebPage","FAQPage"],"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/anchor-tags-a\/","url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/anchor-tags-a\/","name":"Anchor Tags () - HTML learning mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/html\/#website"},"datePublished":"2026-04-10T08:31:15+00:00","dateModified":"2026-04-26T19:11:46+00:00","description":"Learn HTML anchor tags with examples. Create links, emails, and phone calls easily using href, mailto, and tel.","breadcrumb":{"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/anchor-tags-a\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/html\/index.php\/lesson\/anchor-tags-a\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/anchor-tags-a\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/html\/"},{"@type":"ListItem","position":2,"name":"Training: HTML Fundamentals (Beginner) > Module: Links & Navigation > Anchor Tags ()"}]},{"@type":"WebSite","@id":"https:\/\/gigz.pk\/html\/#website","url":"https:\/\/gigz.pk\/html\/","name":"HTML learning mastery","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gigz.pk\/html\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson\/88","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/lesson"}],"about":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/types\/lesson"}],"wp:attachment":[{"href":"https:\/\/gigz.pk\/html\/index.php\/wp-json\/wp\/v2\/media?parent=88"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}