{"id":110,"date":"2026-04-10T08:50:44","date_gmt":"2026-04-10T08:50:44","guid":{"rendered":"https:\/\/gigz.pk\/html\/?post_type=lesson&#038;p=110"},"modified":"2026-04-27T14:15:12","modified_gmt":"2026-04-27T14:15:12","slug":"table-structure","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/html\/index.php\/lesson\/table-structure\/","title":{"rendered":"Table Structure"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">HTML tables are used to display data in rows and columns. They help organize information in a clear and structured format, making it easier to read and compare data.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is a Table in HTML<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A table in HTML is created using the <code>&lt;table&gt;<\/code> tag. Inside a table, data is arranged in rows and columns.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Basic Structure of a Table<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">An HTML table is made up of different parts like rows, headers, and data cells.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Table Tag<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>&lt;table&gt;<\/code> tag is used to create a table.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Table Structure<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;table&gt; &lt;\/table&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Table Row<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>&lt;tr&gt;<\/code> tag is used to create a row in a table.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Table Row<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;tr&gt; &lt;\/tr&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Table Header<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>&lt;th&gt;<\/code> tag is used for table headings. It is usually bold and centered by default.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Table Header<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;th&gt;Name&lt;\/th&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Table Data Cell<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>&lt;td&gt;<\/code> tag is used to add data inside a table.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Table Data<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;td&gt;Ali&lt;\/td&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Complete Table Structure Example<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;table&gt; &lt;tr&gt; &lt;th&gt;Name&lt;\/th&gt; &lt;th&gt;Age&lt;\/th&gt; &lt;\/tr&gt; &lt;tr&gt; &lt;td&gt;Ali&lt;\/td&gt; &lt;td&gt;20&lt;\/td&gt; &lt;\/tr&gt; &lt;\/table&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How Tables Work<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Each table starts with the <code>&lt;table&gt;<\/code> tag. Inside it, rows are created using <code>&lt;tr&gt;<\/code>. Each row contains headings (<code>&lt;th&gt;<\/code>) or data (<code>&lt;td&gt;<\/code>).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">HTML table structure is used to organize data in rows and columns using <code>&lt;table&gt;<\/code>, <code>&lt;tr&gt;<\/code>, <code>&lt;th&gt;<\/code>, and <code>&lt;td&gt;<\/code> tags.<\/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\">HTML Intermediate > Tables &#038; Data Representation > Table Structure<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1777299258865\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":26,"template":"","class_list":["post-110","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>Table Structure - HTML learning mastery<\/title>\n<meta name=\"description\" content=\"Learn HTML tables with tags like table, tr, th, and td. Organize data in rows and columns for clear display.\" \/>\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\/table-structure\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Table Structure - HTML learning mastery\" \/>\n<meta property=\"og:description\" content=\"Learn HTML tables with tags like table, tr, th, and td. Organize data in rows and columns for clear display.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/table-structure\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML learning mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-27T14:15:12+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\\\/table-structure\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/table-structure\\\/\",\"name\":\"Table Structure - HTML learning mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\"},\"datePublished\":\"2026-04-10T08:50:44+00:00\",\"dateModified\":\"2026-04-27T14:15:12+00:00\",\"description\":\"Learn HTML tables with tags like table, tr, th, and td. Organize data in rows and columns for clear display.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/table-structure\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/table-structure\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/table-structure\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Intermediate > Tables & Data Representation > Table Structure\"}]},{\"@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":"Table Structure - HTML learning mastery","description":"Learn HTML tables with tags like table, tr, th, and td. Organize data in rows and columns for clear display.","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\/table-structure\/","og_locale":"en_US","og_type":"article","og_title":"Table Structure - HTML learning mastery","og_description":"Learn HTML tables with tags like table, tr, th, and td. Organize data in rows and columns for clear display.","og_url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/table-structure\/","og_site_name":"HTML learning mastery","article_modified_time":"2026-04-27T14:15:12+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\/table-structure\/","url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/table-structure\/","name":"Table Structure - HTML learning mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/html\/#website"},"datePublished":"2026-04-10T08:50:44+00:00","dateModified":"2026-04-27T14:15:12+00:00","description":"Learn HTML tables with tags like table, tr, th, and td. Organize data in rows and columns for clear display.","breadcrumb":{"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/table-structure\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/html\/index.php\/lesson\/table-structure\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/table-structure\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/html\/"},{"@type":"ListItem","position":2,"name":"HTML Intermediate > Tables & Data Representation > Table Structure"}]},{"@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\/110","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=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}