{"id":112,"date":"2026-04-10T08:53:13","date_gmt":"2026-04-10T08:53:13","guid":{"rendered":"https:\/\/gigz.pk\/html\/?post_type=lesson&#038;p=112"},"modified":"2026-04-27T14:17:21","modified_gmt":"2026-04-27T14:17:21","slug":"rows-columns-headers","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/html\/index.php\/lesson\/rows-columns-headers\/","title":{"rendered":"Rows, Columns, Headers"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In HTML tables, data is organized using rows, columns, and headers. These elements work together to display information in a clear and structured way.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What are Rows<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Rows are horizontal lines in a table. Each row contains one set of data.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Rows are created using the <code>&lt;tr&gt;<\/code> tag in HTML.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Row<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;tr&gt; &lt;td&gt;Ali&lt;\/td&gt; &lt;td&gt;20&lt;\/td&gt; &lt;\/tr&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What are Columns<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Columns are vertical sections in a table. Each column represents a specific type of data, such as name, age, or class.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Columns are formed automatically when you place multiple <code>&lt;td&gt;<\/code> elements inside a row.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Columns<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;table&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>What are Headers<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Headers are used to define the title of each column. They describe what type of data is inside the column.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Headers are created using the <code>&lt;th&gt;<\/code> tag.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Headers<\/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;\/table&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Difference Between Rows, Columns, and Headers<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Rows go from left to right and hold data.<br>Columns go from top to bottom and organize data types.<br>Headers describe each column and make the table easy to understand.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Complete 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;tr&gt; &lt;td&gt;Sara&lt;\/td&gt; &lt;td&gt;22&lt;\/td&gt; &lt;\/tr&gt; &lt;\/table&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Rows, columns, and headers are the basic structure of an HTML table. Rows store data, columns organize it, and headers explain it clearly.<\/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 > Rows, Columns, Headers<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1777299431861\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":27,"template":"","class_list":["post-112","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>Rows, Columns, Headers - HTML learning mastery<\/title>\n<meta name=\"description\" content=\"Learn rows, columns, and headers in HTML tables. Understand tr, th, and td tags to organize data clearly.\" \/>\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\/rows-columns-headers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Rows, Columns, Headers - HTML learning mastery\" \/>\n<meta property=\"og:description\" content=\"Learn rows, columns, and headers in HTML tables. Understand tr, th, and td tags to organize data clearly.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/rows-columns-headers\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML learning mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-27T14:17:21+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\\\/rows-columns-headers\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/rows-columns-headers\\\/\",\"name\":\"Rows, Columns, Headers - HTML learning mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\"},\"datePublished\":\"2026-04-10T08:53:13+00:00\",\"dateModified\":\"2026-04-27T14:17:21+00:00\",\"description\":\"Learn rows, columns, and headers in HTML tables. Understand tr, th, and td tags to organize data clearly.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/rows-columns-headers\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/rows-columns-headers\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/rows-columns-headers\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Intermediate > Tables & Data Representation > Rows, Columns, Headers\"}]},{\"@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":"Rows, Columns, Headers - HTML learning mastery","description":"Learn rows, columns, and headers in HTML tables. Understand tr, th, and td tags to organize data clearly.","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\/rows-columns-headers\/","og_locale":"en_US","og_type":"article","og_title":"Rows, Columns, Headers - HTML learning mastery","og_description":"Learn rows, columns, and headers in HTML tables. Understand tr, th, and td tags to organize data clearly.","og_url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/rows-columns-headers\/","og_site_name":"HTML learning mastery","article_modified_time":"2026-04-27T14:17:21+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\/rows-columns-headers\/","url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/rows-columns-headers\/","name":"Rows, Columns, Headers - HTML learning mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/html\/#website"},"datePublished":"2026-04-10T08:53:13+00:00","dateModified":"2026-04-27T14:17:21+00:00","description":"Learn rows, columns, and headers in HTML tables. Understand tr, th, and td tags to organize data clearly.","breadcrumb":{"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/rows-columns-headers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/html\/index.php\/lesson\/rows-columns-headers\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/rows-columns-headers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/html\/"},{"@type":"ListItem","position":2,"name":"HTML Intermediate > Tables & Data Representation > Rows, Columns, Headers"}]},{"@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\/112","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=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}