{"id":2954,"date":"2022-12-27T12:21:54","date_gmt":"2022-12-27T12:21:54","guid":{"rendered":"https:\/\/learnscripting.org\/?p=2954"},"modified":"2022-12-27T12:23:07","modified_gmt":"2022-12-27T12:23:07","slug":"html-body-tag","status":"publish","type":"post","link":"https:\/\/learnscripting.org\/html-body-tag\/","title":{"rendered":"HTML Body Tag"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The <code>&lt;body&gt;<\/code> tag in HTML represents the main content of an HTML document. It is a container for all the other HTML elements that make up the content of the page, such as headings, paragraphs, images, and links.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is an example of an HTML document with a <code>&lt;body&gt;<\/code> element:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Copy code<code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n  &lt;head&gt;\n    &lt;title&gt;My Page&lt;\/title&gt;\n  &lt;\/head&gt;\n  &lt;body&gt;\n    &lt;h1&gt;Welcome to My Page&lt;\/h1&gt;\n    &lt;p&gt;Here is some information about me:&lt;\/p&gt;\n    &lt;ul&gt;\n      &lt;li&gt;Name: John&lt;\/li&gt;\n      &lt;li&gt;Age: 30&lt;\/li&gt;\n      &lt;li&gt;Location: New York&lt;\/li&gt;\n    &lt;\/ul&gt;\n    &lt;img src=\"my-picture.jpg\" alt=\"A picture of me\"&gt;\n  &lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In this example, the <code>&lt;h1&gt;<\/code>, <code>&lt;p&gt;<\/code>, <code>&lt;ul&gt;<\/code>, and <code>&lt;img&gt;<\/code> elements are all contained within the <code>&lt;body&gt;<\/code> element.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The &lt;body&gt; tag in HTML represents the main content of an HTML document. It is a container for all the other HTML elements that make up the content of the page, such as headings, paragraphs, images, and links. Here is an example of an HTML document with a &lt;body&gt; element: Copy code&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &hellip;<\/p>\n","protected":false},"author":2,"featured_media":3385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":{"facebook_2613112545524186_272996453239123":"","twitter_aTo5NzY3MTIyNTIwMzEwNTM4MjQ7_976712252031053800":""},"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[13],"tags":[],"class_list":["post-2954","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HTML Body Tag - Learn Scripting<\/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:\/\/learnscripting.org\/html-body-tag\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML Body Tag - Learn Scripting\" \/>\n<meta property=\"og:description\" content=\"The &lt;body&gt; tag in HTML represents the main content of an HTML document. It is a container for all the other HTML elements that make up the content of the page, such as headings, paragraphs, images, and links. Here is an example of an HTML document with a &lt;body&gt; element: Copy code&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnscripting.org\/html-body-tag\/\" \/>\n<meta property=\"og:site_name\" content=\"Learn Scripting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/profile.php?id=100064270142636\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-27T12:21:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-27T12:23:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/learnscripting.org\/wp-content\/uploads\/2021\/08\/8-1280x720.jpg?fit=1280%2C720&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"master\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"master\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/\"},\"author\":{\"name\":\"master\",\"@id\":\"https:\\\/\\\/learnscripting.org\\\/#\\\/schema\\\/person\\\/bf3c4da686af137370060664be0d6d23\"},\"headline\":\"HTML Body Tag\",\"datePublished\":\"2022-12-27T12:21:54+00:00\",\"dateModified\":\"2022-12-27T12:23:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/\"},\"wordCount\":63,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/learnscripting.org\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/learnscripting.org\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/8-1280x720.jpg\",\"articleSection\":[\"Html\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/\",\"url\":\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/\",\"name\":\"HTML Body Tag - Learn Scripting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/learnscripting.org\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/learnscripting.org\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/8-1280x720.jpg\",\"datePublished\":\"2022-12-27T12:21:54+00:00\",\"dateModified\":\"2022-12-27T12:23:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/#primaryimage\",\"url\":\"https:\\\/\\\/learnscripting.org\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/8-1280x720.jpg\",\"contentUrl\":\"https:\\\/\\\/learnscripting.org\\\/wp-content\\\/uploads\\\/2021\\\/08\\\/8-1280x720.jpg\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/learnscripting.org\\\/html-body-tag\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/learnscripting.org\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Body Tag\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/learnscripting.org\\\/#website\",\"url\":\"https:\\\/\\\/learnscripting.org\\\/\",\"name\":\"Learn Scripting\",\"description\":\"Coding Knowledge Unveiled: Empower Yourself\",\"publisher\":{\"@id\":\"https:\\\/\\\/learnscripting.org\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/learnscripting.org\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/learnscripting.org\\\/#organization\",\"name\":\"Learn Scripting\",\"url\":\"https:\\\/\\\/learnscripting.org\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/learnscripting.org\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/learnscripting.org\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/cropped-ls-600x600-1-512x512.jpg?fit=512%2C512&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/learnscripting.org\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/cropped-ls-600x600-1-512x512.jpg?fit=512%2C512&ssl=1\",\"width\":512,\"height\":512,\"caption\":\"Learn Scripting\"},\"image\":{\"@id\":\"https:\\\/\\\/learnscripting.org\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/profile.php?id=100064270142636\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/learnscripting.org\\\/#\\\/schema\\\/person\\\/bf3c4da686af137370060664be0d6d23\",\"name\":\"master\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1a1a1b8874d703e67ae938d527c63bbdf31a167356dc0754dd70439744ff5bba?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1a1a1b8874d703e67ae938d527c63bbdf31a167356dc0754dd70439744ff5bba?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1a1a1b8874d703e67ae938d527c63bbdf31a167356dc0754dd70439744ff5bba?s=96&d=mm&r=g\",\"caption\":\"master\"},\"url\":\"https:\\\/\\\/learnscripting.org\\\/author\\\/master\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML Body Tag - Learn Scripting","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:\/\/learnscripting.org\/html-body-tag\/","og_locale":"en_US","og_type":"article","og_title":"HTML Body Tag - Learn Scripting","og_description":"The &lt;body&gt; tag in HTML represents the main content of an HTML document. It is a container for all the other HTML elements that make up the content of the page, such as headings, paragraphs, images, and links. Here is an example of an HTML document with a &lt;body&gt; element: Copy code&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &hellip;","og_url":"https:\/\/learnscripting.org\/html-body-tag\/","og_site_name":"Learn Scripting","article_publisher":"https:\/\/www.facebook.com\/profile.php?id=100064270142636","article_published_time":"2022-12-27T12:21:54+00:00","article_modified_time":"2022-12-27T12:23:07+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/i0.wp.com\/learnscripting.org\/wp-content\/uploads\/2021\/08\/8-1280x720.jpg?fit=1280%2C720&ssl=1","type":"image\/jpeg"}],"author":"master","twitter_card":"summary_large_image","twitter_misc":{"Written by":"master","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/learnscripting.org\/html-body-tag\/#article","isPartOf":{"@id":"https:\/\/learnscripting.org\/html-body-tag\/"},"author":{"name":"master","@id":"https:\/\/learnscripting.org\/#\/schema\/person\/bf3c4da686af137370060664be0d6d23"},"headline":"HTML Body Tag","datePublished":"2022-12-27T12:21:54+00:00","dateModified":"2022-12-27T12:23:07+00:00","mainEntityOfPage":{"@id":"https:\/\/learnscripting.org\/html-body-tag\/"},"wordCount":63,"commentCount":0,"publisher":{"@id":"https:\/\/learnscripting.org\/#organization"},"image":{"@id":"https:\/\/learnscripting.org\/html-body-tag\/#primaryimage"},"thumbnailUrl":"https:\/\/learnscripting.org\/wp-content\/uploads\/2021\/08\/8-1280x720.jpg","articleSection":["Html"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/learnscripting.org\/html-body-tag\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/learnscripting.org\/html-body-tag\/","url":"https:\/\/learnscripting.org\/html-body-tag\/","name":"HTML Body Tag - Learn Scripting","isPartOf":{"@id":"https:\/\/learnscripting.org\/#website"},"primaryImageOfPage":{"@id":"https:\/\/learnscripting.org\/html-body-tag\/#primaryimage"},"image":{"@id":"https:\/\/learnscripting.org\/html-body-tag\/#primaryimage"},"thumbnailUrl":"https:\/\/learnscripting.org\/wp-content\/uploads\/2021\/08\/8-1280x720.jpg","datePublished":"2022-12-27T12:21:54+00:00","dateModified":"2022-12-27T12:23:07+00:00","breadcrumb":{"@id":"https:\/\/learnscripting.org\/html-body-tag\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnscripting.org\/html-body-tag\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learnscripting.org\/html-body-tag\/#primaryimage","url":"https:\/\/learnscripting.org\/wp-content\/uploads\/2021\/08\/8-1280x720.jpg","contentUrl":"https:\/\/learnscripting.org\/wp-content\/uploads\/2021\/08\/8-1280x720.jpg","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/learnscripting.org\/html-body-tag\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learnscripting.org\/"},{"@type":"ListItem","position":2,"name":"HTML Body Tag"}]},{"@type":"WebSite","@id":"https:\/\/learnscripting.org\/#website","url":"https:\/\/learnscripting.org\/","name":"Learn Scripting","description":"Coding Knowledge Unveiled: Empower Yourself","publisher":{"@id":"https:\/\/learnscripting.org\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnscripting.org\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/learnscripting.org\/#organization","name":"Learn Scripting","url":"https:\/\/learnscripting.org\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learnscripting.org\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/learnscripting.org\/wp-content\/uploads\/2022\/03\/cropped-ls-600x600-1-512x512.jpg?fit=512%2C512&ssl=1","contentUrl":"https:\/\/i0.wp.com\/learnscripting.org\/wp-content\/uploads\/2022\/03\/cropped-ls-600x600-1-512x512.jpg?fit=512%2C512&ssl=1","width":512,"height":512,"caption":"Learn Scripting"},"image":{"@id":"https:\/\/learnscripting.org\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/profile.php?id=100064270142636"]},{"@type":"Person","@id":"https:\/\/learnscripting.org\/#\/schema\/person\/bf3c4da686af137370060664be0d6d23","name":"master","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1a1a1b8874d703e67ae938d527c63bbdf31a167356dc0754dd70439744ff5bba?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1a1a1b8874d703e67ae938d527c63bbdf31a167356dc0754dd70439744ff5bba?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1a1a1b8874d703e67ae938d527c63bbdf31a167356dc0754dd70439744ff5bba?s=96&d=mm&r=g","caption":"master"},"url":"https:\/\/learnscripting.org\/author\/master\/"}]}},"_links":{"self":[{"href":"https:\/\/learnscripting.org\/wp-json\/wp\/v2\/posts\/2954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learnscripting.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learnscripting.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learnscripting.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/learnscripting.org\/wp-json\/wp\/v2\/comments?post=2954"}],"version-history":[{"count":1,"href":"https:\/\/learnscripting.org\/wp-json\/wp\/v2\/posts\/2954\/revisions"}],"predecessor-version":[{"id":3386,"href":"https:\/\/learnscripting.org\/wp-json\/wp\/v2\/posts\/2954\/revisions\/3386"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/learnscripting.org\/wp-json\/wp\/v2\/media\/3385"}],"wp:attachment":[{"href":"https:\/\/learnscripting.org\/wp-json\/wp\/v2\/media?parent=2954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learnscripting.org\/wp-json\/wp\/v2\/categories?post=2954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learnscripting.org\/wp-json\/wp\/v2\/tags?post=2954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}