{"id":118,"date":"2026-04-10T08:57:32","date_gmt":"2026-04-10T08:57:32","guid":{"rendered":"https:\/\/gigz.pk\/html\/?post_type=lesson&#038;p=118"},"modified":"2026-04-27T14:23:52","modified_gmt":"2026-04-27T14:23:52","slug":"real-data-tables","status":"publish","type":"lesson","link":"https:\/\/gigz.pk\/html\/index.php\/lesson\/real-data-tables\/","title":{"rendered":"Real Data Tables"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Table styling in HTML is used to improve the appearance of tables using CSS. It makes tables more readable, organized, and visually attractive.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is Table Styling<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Table styling means applying colors, borders, spacing, and alignment to HTML tables to make them look better and easier to understand.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Adding Borders to Tables<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Borders are used to define table structure clearly. You can add borders using CSS.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Table Border<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&lt;table style=&#8221;border: 1px solid black; border-collapse: collapse;&#8221;&gt; &lt;tr&gt; &lt;th style=&#8221;border: 1px solid black;&#8221;&gt;Name&lt;\/th&gt; &lt;th style=&#8221;border: 1px solid black;&#8221;&gt;Age&lt;\/th&gt; &lt;\/tr&gt; &lt;tr&gt; &lt;td style=&#8221;border: 1px solid black;&#8221;&gt;Ali&lt;\/td&gt; &lt;td style=&#8221;border: 1px solid black;&#8221;&gt;20&lt;\/td&gt; &lt;\/tr&gt; &lt;\/table&gt;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Cell Padding<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Padding adds space inside table cells to make content look clean.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Padding<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">td {<br>padding: 10px;<br>}<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Text Alignment<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Text alignment is used to position text inside cells.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Text Alignment<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">td {<br>text-align: center;<br>}<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Background Color<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can change the background color of table rows or cells for better design.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Background Color<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">th {<br>background-color: lightgray;<br>}<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Hover Effect<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Hover effect highlights a row when the mouse moves over it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Example of Hover Effect<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">tr:hover {<br>background-color: #f2f2f2;<br>}<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Summary<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Table styling improves the design and readability of HTML tables using CSS properties like borders, padding, alignment, and colors. It helps create professional and user-friendly layouts.<\/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 > Real Data Tables<\/span><\/span><\/div>\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1777299811181\"><strong class=\"schema-faq-question\"><\/strong> <p class=\"schema-faq-answer\"><\/p> <\/div> <\/div>\n","protected":false},"menu_order":30,"template":"","class_list":["post-118","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>Real Data Tables - HTML learning mastery<\/title>\n<meta name=\"description\" content=\"Learn HTML table styling with CSS. Add borders, padding, colors, and hover effects to create clean professional tables.\" \/>\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\/real-data-tables\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Real Data Tables - HTML learning mastery\" \/>\n<meta property=\"og:description\" content=\"Learn HTML table styling with CSS. Add borders, padding, colors, and hover effects to create clean professional tables.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gigz.pk\/html\/index.php\/lesson\/real-data-tables\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML learning mastery\" \/>\n<meta property=\"article:modified_time\" content=\"2026-04-27T14:23:52+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\\\/real-data-tables\\\/\",\"url\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/real-data-tables\\\/\",\"name\":\"Real Data Tables - HTML learning mastery\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/#website\"},\"datePublished\":\"2026-04-10T08:57:32+00:00\",\"dateModified\":\"2026-04-27T14:23:52+00:00\",\"description\":\"Learn HTML table styling with CSS. Add borders, padding, colors, and hover effects to create clean professional tables.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/real-data-tables\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/real-data-tables\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gigz.pk\\\/html\\\/index.php\\\/lesson\\\/real-data-tables\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gigz.pk\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Intermediate > Tables & Data Representation > Real Data Tables\"}]},{\"@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":"Real Data Tables - HTML learning mastery","description":"Learn HTML table styling with CSS. Add borders, padding, colors, and hover effects to create clean professional tables.","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\/real-data-tables\/","og_locale":"en_US","og_type":"article","og_title":"Real Data Tables - HTML learning mastery","og_description":"Learn HTML table styling with CSS. Add borders, padding, colors, and hover effects to create clean professional tables.","og_url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/real-data-tables\/","og_site_name":"HTML learning mastery","article_modified_time":"2026-04-27T14:23:52+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\/real-data-tables\/","url":"https:\/\/gigz.pk\/html\/index.php\/lesson\/real-data-tables\/","name":"Real Data Tables - HTML learning mastery","isPartOf":{"@id":"https:\/\/gigz.pk\/html\/#website"},"datePublished":"2026-04-10T08:57:32+00:00","dateModified":"2026-04-27T14:23:52+00:00","description":"Learn HTML table styling with CSS. Add borders, padding, colors, and hover effects to create clean professional tables.","breadcrumb":{"@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/real-data-tables\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gigz.pk\/html\/index.php\/lesson\/real-data-tables\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/gigz.pk\/html\/index.php\/lesson\/real-data-tables\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gigz.pk\/html\/"},{"@type":"ListItem","position":2,"name":"HTML Intermediate > Tables & Data Representation > Real Data Tables"}]},{"@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\/118","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=118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}