{"id":1939,"date":"2015-10-28T12:19:21","date_gmt":"2015-10-28T12:19:21","guid":{"rendered":"http:\/\/tutorialsclass.com\/?p=1939"},"modified":"2021-04-25T17:11:04","modified_gmt":"2021-04-25T17:11:04","slug":"html-elements-tags","status":"publish","type":"post","link":"https:\/\/tutorialsclass.com\/html-elements-tags\/","title":{"rendered":"HTML Elements and Tags"},"content":{"rendered":"\n<p>A Website page is made up of multiple HTML elements and HTML element is made of HTML tags.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">HTML Tags<\/h3>\n\n\n\n<p>HTML tags are like labels or keywords to define web page. These tags tells the browser about the format or structure of the content.<\/p>\n\n\n\n<p>Most of the tags comes in pair. One is called opening tag and other is closing tag. Tags begin with a less-than sign <code>\u201c&lt;\"<\/code> and end with a greater-than sign <code>\"&gt;\u201c<\/code>. For example:&nbsp;<code>&lt;p&gt;&lt;\/p&gt;<\/code>&nbsp;tags is used to create paragraph content. While&nbsp;<code>&lt;h1&gt;&lt;\/h1&gt;<\/code>&nbsp;tags are used to create headings.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">HTML Element<\/h3>\n\n\n\n<p>An element in HTML generally consists of an opening tag, content, and a closing tag. We can see the HTML element as an individual component of web-page.<\/p>\n\n\n\n<p><strong>Start\/Opening Tag<\/strong><br>HTML elements starts with opening tags. For example:&nbsp;<code>&lt;p&gt;&lt;b&gt;&lt;h1&gt;<\/code>&nbsp;etc.<\/p>\n\n\n\n<p><strong>End\/Closing Tag<\/strong><br>HTML elements ends with closing tags. For example:&nbsp;<code>&lt;\/p&gt;&lt;\/b&gt;&lt;\/h1&gt;<\/code>&nbsp;etc.<\/p>\n\n\n\n<p><strong>Content<\/strong><br>We place content between the opening and closing tags. For example:&nbsp;<code>&lt;p&gt;<\/code>This is sample content.<code>&lt;\/p&gt;<\/code><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Nested HTML Elements<\/h3>\n\n\n\n<p>HTML elements can be nested. This means that the HTML element can contain many other elements inside.<\/p>\n\n\n\n<pre class=\"wp-block-code language-markup\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;body&gt;\n \n&lt;h1&gt;My First Heading&lt;\/h1&gt;\n&lt;p&gt;My sample paragraph content.&lt;\/p&gt;\n \n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n\n\n\n<p><strong>Example Description:<\/strong> You can see that the above HTML page is made up of various HTML elements and tags. Some tags have nested tags inside as well.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">HTML Empty Elements<\/h3>\n\n\n\n<p>HTML elements with no content are called empty elements. There are many empty elements that do not have closing tag.<\/p>\n\n\n\n<p>For example:&nbsp;<code>&lt;br&gt;<\/code>&nbsp;is an empty element without a closing tag. It is used to create line break.<\/p>\n\n\n\n<p>It is good to close every tags. Empty elements can be \u201cclosed\u201d in the same Opening tag. For example:&nbsp;<code>&lt;br&nbsp;\/&gt;<\/code><\/p>\n\n\n\n<p>HTML5 does not require empty elements to be closed. But if you want strict validation, or if you need to make your document readable by XML parser, you must close all HTML elements properly.<\/p>\n\n\n\n<p>HTML5 does not require empty elements to be closed. But if you want strict validation, or if you need to make your document readable by XML parser, you must close all HTML elements properly.<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Tips while using HTML Tags:<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Always close HTML tags to validate your webpage against <a href=\"https:\/\/validator.w3.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">W3C Validation Standard<\/a>.<\/li><li>HTML5 standard does not require lowercase tags but W3C recommends to use lowercase in HTML<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A Website page is made up of multiple HTML elements and HTML element is made of HTML tags. HTML Tags HTML tags are like labels or keywords to define web page. These&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"keywords":[201],"class_list":["post-1939","post","type-post","status-publish","format-standard","hentry","category-html","keywords-html-element-and-tags"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HTML Elements and Tags - Tutorials Class<\/title>\n<meta name=\"description\" content=\"What are HTML Elements and Tags? HTML tags are labels to define page structure. An element is made of a start tag, content &amp; end tag. Learn with example\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tutorialsclass.com\/html-elements-tags\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML Elements and Tags - Tutorials Class\" \/>\n<meta property=\"og:description\" content=\"What are HTML Elements and Tags? HTML tags are labels to define page structure. An element is made of a start tag, content &amp; end tag. Learn with example\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorialsclass.com\/html-elements-tags\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorials Class\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/tutorialsclass\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-28T12:19:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-25T17:11:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/07\/tutorials-class-logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tutorials Class\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@TutorialsClass\" \/>\n<meta name=\"twitter:site\" content=\"@TutorialsClass\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tutorials Class\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/tutorialsclass.com\/html-elements-tags\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/tutorialsclass.com\/html-elements-tags\/\"},\"author\":{\"name\":\"Tutorials Class\",\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/person\/f7d4f67fc9721ef3ea91cb21aaf89e3e\"},\"headline\":\"HTML Elements and Tags\",\"datePublished\":\"2015-10-28T12:19:21+00:00\",\"dateModified\":\"2021-04-25T17:11:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/tutorialsclass.com\/html-elements-tags\/\"},\"wordCount\":382,\"publisher\":{\"@id\":\"https:\/\/tutorialsclass.com\/#organization\"},\"articleSection\":[\"HTML Tutorial\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorialsclass.com\/html-elements-tags\/\",\"url\":\"https:\/\/tutorialsclass.com\/html-elements-tags\/\",\"name\":\"HTML Elements and Tags - Tutorials Class\",\"isPartOf\":{\"@id\":\"https:\/\/tutorialsclass.com\/#website\"},\"datePublished\":\"2015-10-28T12:19:21+00:00\",\"dateModified\":\"2021-04-25T17:11:04+00:00\",\"description\":\"What are HTML Elements and Tags? HTML tags are labels to define page structure. An element is made of a start tag, content & end tag. Learn with example\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorialsclass.com\/html-elements-tags\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorialsclass.com\/html-elements-tags\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorialsclass.com\/html-elements-tags\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorialsclass.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn\",\"item\":\"https:\/\/tutorialsclass.com\/learn\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"HTML Tutorial\",\"item\":\"https:\/\/tutorialsclass.com\/learn\/html\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"HTML Elements and Tags\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tutorialsclass.com\/#website\",\"url\":\"https:\/\/tutorialsclass.com\/\",\"name\":\"Tutorials Class\",\"description\":\"Online Tutorials for Beginners\",\"publisher\":{\"@id\":\"https:\/\/tutorialsclass.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tutorialsclass.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/tutorialsclass.com\/#organization\",\"name\":\"Tutorials Class\",\"url\":\"https:\/\/tutorialsclass.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png\",\"contentUrl\":\"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png\",\"width\":442,\"height\":94,\"caption\":\"Tutorials Class\"},\"image\":{\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/tutorialsclass\",\"https:\/\/x.com\/TutorialsClass\",\"https:\/\/in.pinterest.com\/merientinfotech\/boards\/\",\"https:\/\/www.youtube.com\/channel\/UCzbpQXlqec-bQf1_kwrTuoA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/person\/f7d4f67fc9721ef3ea91cb21aaf89e3e\",\"name\":\"Tutorials Class\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/346276d8e1600eec36df1bf9adcf78bf1eabb87fc0a79250e0565a88809b8f14?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/346276d8e1600eec36df1bf9adcf78bf1eabb87fc0a79250e0565a88809b8f14?s=96&d=mm&r=g\",\"caption\":\"Tutorials Class\"},\"sameAs\":[\"tcadmin\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML Elements and Tags - Tutorials Class","description":"What are HTML Elements and Tags? HTML tags are labels to define page structure. An element is made of a start tag, content & end tag. Learn with example","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:\/\/tutorialsclass.com\/html-elements-tags\/","og_locale":"en_US","og_type":"article","og_title":"HTML Elements and Tags - Tutorials Class","og_description":"What are HTML Elements and Tags? HTML tags are labels to define page structure. An element is made of a start tag, content & end tag. Learn with example","og_url":"https:\/\/tutorialsclass.com\/html-elements-tags\/","og_site_name":"Tutorials Class","article_publisher":"https:\/\/www.facebook.com\/tutorialsclass","article_published_time":"2015-10-28T12:19:21+00:00","article_modified_time":"2021-04-25T17:11:04+00:00","og_image":[{"width":600,"height":600,"url":"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/07\/tutorials-class-logo.png","type":"image\/png"}],"author":"Tutorials Class","twitter_card":"summary_large_image","twitter_creator":"@TutorialsClass","twitter_site":"@TutorialsClass","twitter_misc":{"Written by":"Tutorials Class","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tutorialsclass.com\/html-elements-tags\/#article","isPartOf":{"@id":"https:\/\/tutorialsclass.com\/html-elements-tags\/"},"author":{"name":"Tutorials Class","@id":"https:\/\/tutorialsclass.com\/#\/schema\/person\/f7d4f67fc9721ef3ea91cb21aaf89e3e"},"headline":"HTML Elements and Tags","datePublished":"2015-10-28T12:19:21+00:00","dateModified":"2021-04-25T17:11:04+00:00","mainEntityOfPage":{"@id":"https:\/\/tutorialsclass.com\/html-elements-tags\/"},"wordCount":382,"publisher":{"@id":"https:\/\/tutorialsclass.com\/#organization"},"articleSection":["HTML Tutorial"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/tutorialsclass.com\/html-elements-tags\/","url":"https:\/\/tutorialsclass.com\/html-elements-tags\/","name":"HTML Elements and Tags - Tutorials Class","isPartOf":{"@id":"https:\/\/tutorialsclass.com\/#website"},"datePublished":"2015-10-28T12:19:21+00:00","dateModified":"2021-04-25T17:11:04+00:00","description":"What are HTML Elements and Tags? HTML tags are labels to define page structure. An element is made of a start tag, content & end tag. Learn with example","breadcrumb":{"@id":"https:\/\/tutorialsclass.com\/html-elements-tags\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorialsclass.com\/html-elements-tags\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/tutorialsclass.com\/html-elements-tags\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorialsclass.com\/"},{"@type":"ListItem","position":2,"name":"Learn","item":"https:\/\/tutorialsclass.com\/learn\/"},{"@type":"ListItem","position":3,"name":"HTML Tutorial","item":"https:\/\/tutorialsclass.com\/learn\/html\/"},{"@type":"ListItem","position":4,"name":"HTML Elements and Tags"}]},{"@type":"WebSite","@id":"https:\/\/tutorialsclass.com\/#website","url":"https:\/\/tutorialsclass.com\/","name":"Tutorials Class","description":"Online Tutorials for Beginners","publisher":{"@id":"https:\/\/tutorialsclass.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tutorialsclass.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/tutorialsclass.com\/#organization","name":"Tutorials Class","url":"https:\/\/tutorialsclass.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/","url":"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png","contentUrl":"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png","width":442,"height":94,"caption":"Tutorials Class"},"image":{"@id":"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/tutorialsclass","https:\/\/x.com\/TutorialsClass","https:\/\/in.pinterest.com\/merientinfotech\/boards\/","https:\/\/www.youtube.com\/channel\/UCzbpQXlqec-bQf1_kwrTuoA"]},{"@type":"Person","@id":"https:\/\/tutorialsclass.com\/#\/schema\/person\/f7d4f67fc9721ef3ea91cb21aaf89e3e","name":"Tutorials Class","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorialsclass.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/346276d8e1600eec36df1bf9adcf78bf1eabb87fc0a79250e0565a88809b8f14?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/346276d8e1600eec36df1bf9adcf78bf1eabb87fc0a79250e0565a88809b8f14?s=96&d=mm&r=g","caption":"Tutorials Class"},"sameAs":["tcadmin"]}]}},"_links":{"self":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/posts\/1939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/comments?post=1939"}],"version-history":[{"count":5,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/posts\/1939\/revisions"}],"predecessor-version":[{"id":7110,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/posts\/1939\/revisions\/7110"}],"wp:attachment":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/media?parent=1939"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/categories?post=1939"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/tags?post=1939"},{"taxonomy":"keywords","embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/keywords?post=1939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}