{"id":70,"date":"2026-04-10T08:16:38","date_gmt":"2026-04-10T08:16:38","guid":{"rendered":"https:\/\/gigz.pk\/html\/?post_type=lesson&#038;p=70"},"modified":"2026-04-22T12:03:02","modified_gmt":"2026-04-22T12:03:02","slug":"htmlheadbody-tags","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/html\/index.php\/lesson\/htmlheadbody-tags\/","title":{"rendered":"\u00a0&lt;html>,&lt;head>,&lt;body>  Tags"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">These three tags form the basic structure of every HTML web page. They help organize the content and tell the browser how to display the page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>&lt;html&gt; Tag<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The &lt;html&gt; tag is the root element of an HTML document. All other elements are placed inside this tag. It tells the browser that everything inside it is part of a web page.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>&lt;head&gt; Tag<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The &lt;head&gt; tag contains information about the webpage that is not directly visible to users. It includes the page title, meta data, and links to stylesheets or scripts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, the title that appears on the browser tab is written inside the &lt;head&gt; section.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>&lt;body&gt; Tag<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The &lt;body&gt; tag contains all the visible content of the webpage. This includes text, images, links, videos, and other elements that users can see and interact with.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Everything that appears on the screen is written inside the &lt;body&gt; tag.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example Structure<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;My Web Page&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;h1&gt;Welcome&lt;\/h1&gt; &lt;p&gt;This is my website&lt;\/p&gt; &lt;\/body&gt; &lt;\/html&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The &lt;html&gt; tag wraps the entire page, the &lt;head&gt; tag stores background information, and the &lt;body&gt; tag displays the actual content. Together, they create the foundation of every HTML document.<\/p>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1776859362965\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\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\">HTML Fundamentals (Beginner) > Basic HTML Structure > , , Tags<\/span><\/span><\/div>","protected":false},"menu_order":7,"template":"","class_list":["post-70","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>\u00a0&lt;html&gt;,&lt;head&gt;,&lt;body&gt; Tags - HTML learning mastery<\/title>\n<meta name=\"description\" content=\"Learn HTML html, head, and body tags with examples to understand basic web page structure and how content is organized in HTML documents.\" \/>\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\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u00a0&lt;html&gt;,&lt;head&gt;,&lt;body&gt; Tags - HTML learning mastery\" \/>\n<meta property=\"og:description\" content=\"Learn HTML html, head, and body tags with examples to understand basic web page structure and how content is organized in HTML documents.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML learning mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-22T12:03:02+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\\\/htmlheadbody-tags\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/\",\"name\":\"\u00a0&lt;html>,&lt;head>,&lt;body> Tags - HTML learning mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\"},\"datePublished\":\"2026-04-10T08:16:38+00:00\",\"dateModified\":\"2026-04-22T12:03:02+00:00\",\"description\":\"Learn HTML html, head, and body tags with examples to understand basic web page structure and how content is organized in HTML documents.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Fundamentals (Beginner) > Basic HTML Structure > , , 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":"\u00a0&lt;html>,&lt;head>,&lt;body> Tags - HTML learning mastery","description":"Learn HTML html, head, and body tags with examples to understand basic web page structure and how content is organized in HTML documents.","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\/","og_locale":"en_US","og_type":"article","og_title":"\u00a0&lt;html>,&lt;head>,&lt;body> Tags - HTML learning mastery","og_description":"Learn HTML html, head, and body tags with examples to understand basic web page structure and how content is organized in HTML documents.","og_url":"https:\/\/gigz.pk\/","og_site_name":"HTML learning mastery","article_modified_time":"2026-04-22T12:03:02+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\/htmlheadbody-tags\/","url":"https:\/\/gigz.pk\/","name":"\u00a0&lt;html>,&lt;head>,&lt;body> Tags - HTML learning mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/html\/#website"},"datePublished":"2026-04-10T08:16:38+00:00","dateModified":"2026-04-22T12:03:02+00:00","description":"Learn HTML html, head, and body tags with examples to understand basic web page structure and how content is organized in HTML documents.","breadcrumb":{"@id":"https:\/\/gigz.pk\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/html\/"},{"@type":"ListItem","position":2,"name":"HTML Fundamentals (Beginner) > Basic HTML Structure > , , 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\/70","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=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}