{"id":520,"date":"2025-05-19T11:18:35","date_gmt":"2025-05-19T11:18:35","guid":{"rendered":"https:\/\/buhave.com\/courses\/?p=520"},"modified":"2025-05-20T12:57:18","modified_gmt":"2025-05-20T12:57:18","slug":"tables","status":"publish","type":"post","link":"https:\/\/buhave.com\/courses\/html\/tables\/","title":{"rendered":"Tables"},"content":{"rendered":"<h2>Structure of a table: &lt;table&gt;, &lt;tr&gt;, &lt;td&gt;, &lt;th&gt;<\/h2>\n<p>HTML tables are used to display tabular data (like spreadsheets or schedules) in a structured row-and-column format using key tags: &lt;table&gt;, &lt;tr&gt;, &lt;td&gt;, and &lt;th&gt;.<\/p>\n<h3>Basic Tags and Their Roles<\/h3>\n<table style=\"width: 100%;border-collapse: collapse;font-family: Arial, sans-serif;margin: 20px 0\">\n<thead>\n<tr style=\"background-color: #f5f7fa\">\n<th style=\"padding: 12px 15px;text-align: left;border-bottom: 2px solid #e1e5eb\">Tag<\/th>\n<th style=\"padding: 12px 15px;text-align: left;border-bottom: 2px solid #e1e5eb\">Meaning<\/th>\n<th style=\"padding: 12px 15px;text-align: left;border-bottom: 2px solid #e1e5eb\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 12px 15px;border-bottom: 1px solid #e1e5eb\"><code style=\"background: #f0f4f8;padding: 2px 5px;border-radius: 3px\">&lt;table&gt;<\/code><\/td>\n<td style=\"padding: 12px 15px;border-bottom: 1px solid #e1e5eb\">Table container<\/td>\n<td style=\"padding: 12px 15px;border-bottom: 1px solid #e1e5eb\">Wraps all table elements (rows and cells)<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 15px;border-bottom: 1px solid #e1e5eb\"><code style=\"background: #f0f4f8;padding: 2px 5px;border-radius: 3px\">&lt;tr&gt;<\/code><\/td>\n<td style=\"padding: 12px 15px;border-bottom: 1px solid #e1e5eb\">Table row<\/td>\n<td style=\"padding: 12px 15px;border-bottom: 1px solid #e1e5eb\">Defines a single row of data<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 15px;border-bottom: 1px solid #e1e5eb\"><code style=\"background: #f0f4f8;padding: 2px 5px;border-radius: 3px\">&lt;td&gt;<\/code><\/td>\n<td style=\"padding: 12px 15px;border-bottom: 1px solid #e1e5eb\">Table data cell<\/td>\n<td style=\"padding: 12px 15px;border-bottom: 1px solid #e1e5eb\">Defines a standard data cell inside a row<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px 15px\"><code style=\"background: #f0f4f8;padding: 2px 5px;border-radius: 3px\">&lt;th&gt;<\/code><\/td>\n<td style=\"padding: 12px 15px\">Table header cell<\/td>\n<td style=\"padding: 12px 15px\">Used for header cells; usually bold and centered by default<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Simple Table Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>&lt;table border=&#8221;1&#8243;&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;th&gt;Name&lt;\/th&gt;<\/em><br \/>\n<em>&lt;th&gt;Age&lt;\/th&gt;<\/em><br \/>\n<em>&lt;th&gt;City&lt;\/th&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;td&gt;Alice&lt;\/td&gt;<\/em><br \/>\n<em>&lt;td&gt;25&lt;\/td&gt;<\/em><br \/>\n<em>&lt;td&gt;New York&lt;\/td&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;td&gt;Bob&lt;\/td&gt;<\/em><br \/>\n<em>&lt;td&gt;30&lt;\/td&gt;<\/em><br \/>\n<em>&lt;td&gt;Los Angeles&lt;\/td&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;\/table&gt;<\/em><\/p>\n<p><strong>What\u2019s Happening:<\/strong><\/p>\n<ul>\n<li>&lt;table&gt; wraps the entire table.<\/li>\n<li>The first &lt;tr&gt; contains &lt;th&gt; for column headings.<\/li>\n<li>The following &lt;tr&gt; tags contain &lt;td&gt; elements for actual data.<\/li>\n<\/ul>\n<p><strong>Additional Tips:<\/strong><\/p>\n<ul>\n<li>Use border, cellpadding, and cellspacing (via CSS or attributes) for spacing\/styling.<\/li>\n<li>Use &lt;thead&gt;, &lt;tbody&gt;, and &lt;tfoot&gt; for semantic structure (especially helpful in long tables).<\/li>\n<li>Use CSS for styling (e.g., zebra striping rows, hover effects, border collapse).<\/li>\n<\/ul>\n<h2>Table headers and captions<\/h2>\n<p>Adding headers and a caption to HTML tables enhances readability, accessibility, and structure, especially when presenting complex data.<\/p>\n<h3>&lt;th&gt; \u2013 Table Header Cells<\/h3>\n<p>The &lt;th&gt; (table header) tag is used to define column or row headings. These cells are typically bold and centered by default.<\/p>\n<p><strong>Syntax:<\/strong><\/p>\n<p style=\"text-align: center\"><em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;th&gt;Product&lt;\/th&gt;<\/em><br \/>\n<em>&lt;th&gt;Price&lt;\/th&gt;<\/em><br \/>\n<em>&lt;th&gt;Quantity&lt;\/th&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><\/p>\n<p><strong>Attributes:<\/strong><\/p>\n<ul>\n<li>scope=&#8221;col&#8221; \u2192 Declares the header for a column.<\/li>\n<li>scope=&#8221;row&#8221; \u2192 Declares the header for a row.<\/li>\n<li>Improves accessibility for screen readers.<\/li>\n<\/ul>\n<p><strong>Example with Scope:<\/strong><\/p>\n<p style=\"text-align: center\"><em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;th scope=&#8221;col&#8221;&gt;Name&lt;\/th&gt;<\/em><br \/>\n<em>&lt;th scope=&#8221;col&#8221;&gt;Email&lt;\/th&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;th scope=&#8221;row&#8221;&gt;John&lt;\/th&gt;<\/em><br \/>\n<em>&lt;td&gt;john@example.com&lt;\/td&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><\/p>\n<h3>&lt;caption&gt; \u2013 Table Title or Description<\/h3>\n<p>The &lt;caption&gt; tag provides a short title or summary for the table and appears above the table by default.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>&lt;table border=&#8221;1&#8243;&gt;<\/em><br \/>\n<em>&lt;caption&gt;Monthly Sales Report&lt;\/caption&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;th&gt;Month&lt;\/th&gt;<\/em><br \/>\n<em>&lt;th&gt;Sales&lt;\/th&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;td&gt;January&lt;\/td&gt;<\/em><br \/>\n<em>&lt;td&gt;$10,000&lt;\/td&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;\/table&gt;<\/em><\/p>\n<p><strong>Notes:<\/strong><\/p>\n<ul>\n<li>The &lt;caption&gt; tag must be the first child of the &lt;table&gt;.<\/li>\n<li>Useful for accessibility and context in printed or screen-reader views.<\/li>\n<\/ul>\n<p><strong>Best Practices<\/strong><\/p>\n<ul>\n<li>Always use &lt;th&gt; for headers instead of styling &lt;td&gt; elements.<\/li>\n<li>Use scope or id\/headers attributes for better accessibility.<\/li>\n<li>Keep &lt;caption&gt; concise and descriptive.<\/li>\n<li>Style captions with CSS (e.g., caption-side: bottom; to move it below).<\/li>\n<\/ul>\n<h2>Merging cells: colspan, rowspan<\/h2>\n<p>In HTML tables, you can merge cells horizontally and vertically using the colspan and rowspan attributes on &lt;td&gt; or &lt;th&gt; elements to better structure complex data.<\/p>\n<h3>colspan \u2013 Merge Columns<\/h3>\n<p><strong>Definition:<\/strong><\/p>\n<ul>\n<li>The colspan attribute allows a cell to span across multiple columns.<\/li>\n<\/ul>\n<p><strong>Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>&lt;table border=&#8221;1&#8243;&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;th colspan=&#8221;2&#8243;&gt;Employee Info&lt;\/th&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;td&gt;Name&lt;\/td&gt;<\/em><br \/>\n<em>&lt;td&gt;John&lt;\/td&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;\/table&gt;<\/em><\/p>\n<p><strong>Result:<\/strong><\/p>\n<p>Employee Info<\/p>\n<p><strong>Name<\/strong><\/p>\n<ul>\n<li>The header cell spans 2 columns.<\/li>\n<\/ul>\n<h3>rowspan \u2013 Merge Rows<\/h3>\n<p><strong>Definition:<\/strong><\/p>\n<ul>\n<li>The rowspan attribute allows a cell to span across multiple rows.<\/li>\n<\/ul>\n<p><strong>Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>&lt;table border=&#8221;1&#8243;&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;th rowspan=&#8221;2&#8243;&gt;Department&lt;\/th&gt;<\/em><br \/>\n<em>&lt;td&gt;HR&lt;\/td&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;td&gt;Finance&lt;\/td&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;\/table&gt;<\/em><\/p>\n<p>The header cell spans 2 rows vertically.<\/p>\n<p><strong>Combining colspan and rowspan<\/strong><\/p>\n<ul>\n<li>You can use both attributes together to build complex layouts.<\/li>\n<\/ul>\n<p><strong>Example:<\/strong><\/p>\n<p style=\"text-align: center\"><em>&lt;table border=&#8221;1&#8243;&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;th rowspan=&#8221;2&#8243; colspan=&#8221;2&#8243;&gt;Employee&lt;\/th&gt;<\/em><br \/>\n<em>&lt;td&gt;Salary&lt;\/td&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;td&gt;$50,000&lt;\/td&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;\/table&gt;<\/em><\/p>\n<p><strong>Tips and Best Practices<\/strong><\/p>\n<ul>\n<li>Adjust other rows and columns accordingly when using rowspan or colspan.<\/li>\n<li>Always ensure your table structure remains logically aligned.<\/li>\n<li>Use CSS for visual enhancements rather than layout merging unless necessary.<\/li>\n<\/ul>\n<h2>Styling basics (borders, spacing)<\/h2>\n<p>Styling HTML tables improves readability, aesthetics, and usability. Here\u2019s a detailed guide to applying basic styles like borders, spacing, and alignment using both HTML attributes and CSS.<\/p>\n<h3>1. Table Borders<\/h3>\n<p><strong>Inline Attribute (HTML):<\/strong><\/p>\n<p style=\"text-align: center\"><em>&lt;table border=&#8221;1&#8243;&gt;<\/em><\/p>\n<p>Adds simple borders to the table and cells.<\/p>\n<p><strong>CSS Styling (Recommended):<\/strong><\/p>\n<p style=\"text-align: center\"><em>table, th, td {<\/em><br \/>\n<em>border: 1px solid black;<\/em><br \/>\n<em>border-collapse: collapse; \/* Removes double borders *\/<\/em><br \/>\n<em>}<\/em><\/p>\n<h3>2. Cell Spacing vs. Cell Padding<\/h3>\n<p>cellspacing \u2013 Space between cells (HTML attribute or CSS border-spacing)<\/p>\n<p style=\"text-align: center\"><em>&lt;table cellspacing=&#8221;10&#8243;&gt;<\/em><\/p>\n<p>Or with CSS:<\/p>\n<p style=\"text-align: center\"><em>table {<\/em><br \/>\n<em>border-spacing: 10px;<\/em><br \/>\n<em>}<\/em><\/p>\n<p>cellpadding \u2013 Space inside cells (HTML attribute or CSS padding)<\/p>\n<p style=\"text-align: center\"><em>&lt;table cellpadding=&#8221;10&#8243;&gt;<\/em><\/p>\n<p>Or with CSS:<\/p>\n<p style=\"text-align: center\"><em>th, td {<\/em><br \/>\n<em>padding: 10px;<\/em><br \/>\n<em>}<\/em><\/p>\n<h3>3. Alignment (Text and Content)<\/h3>\n<p style=\"text-align: center\"><em>th {<\/em><br \/>\n<em>text-align: center;<\/em><br \/>\n<em>vertical-align: middle;<\/em><br \/>\n<em>}<\/em><br \/>\n<em>td {<\/em><br \/>\n<em>text-align: left;<\/em><br \/>\n<em>}<\/em><\/p>\n<h3>4. Table Width, Height, and Background<\/h3>\n<p style=\"text-align: center\"><em>table {<\/em><br \/>\n<em>width: 80%;<\/em><br \/>\n<em>background-color: #f9f9f9;<\/em><br \/>\n<em>}<\/em><\/p>\n<p style=\"text-align: center\"><em>th {<\/em><br \/>\n<em>background-color: #e0e0e0;<\/em><br \/>\n<em>}<\/em><\/p>\n<p><strong>Example (CSS Embedded in HTML):<\/strong><\/p>\n<p style=\"text-align: center\"><em>&lt;style&gt;<\/em><br \/>\n<em>table, th, td {<\/em><br \/>\n<em>border: 1px solid black;<\/em><br \/>\n<em>border-collapse: collapse;<\/em><br \/>\n<em>}<\/em><br \/>\n<em>th, td {<\/em><br \/>\n<em>padding: 8px;<\/em><br \/>\n<em>text-align: left;<\/em><br \/>\n<em>}<\/em><br \/>\n<em>&lt;\/style&gt;<\/em><\/p>\n<p style=\"text-align: center\"><em>&lt;table&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;th&gt;Name&lt;\/th&gt;<\/em><br \/>\n<em>&lt;th&gt;Role&lt;\/th&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;tr&gt;<\/em><br \/>\n<em>&lt;td&gt;Alice&lt;\/td&gt;<\/em><br \/>\n<em>&lt;td&gt;Developer&lt;\/td&gt;<\/em><br \/>\n<em>&lt;\/tr&gt;<\/em><br \/>\n<em>&lt;\/table&gt;<\/em><\/p>\n<p><strong>Pro Tip:<\/strong><\/p>\n<p>For modern, responsive styling, consider using CSS frameworks like Bootstrap or utility libraries like Tailwind CSS.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Structure of a table: &lt;table&gt;, &lt;tr&gt;, &lt;td&gt;, &lt;th&gt; HTML tables are used to display tabular data (like spreadsheets or schedules) in a structured row-and-column format using key tags: &lt;table&gt;, &lt;tr&gt;, &lt;td&gt;, and &lt;th&gt;. Basic Tags and Their Roles Tag Meaning Description &lt;table&gt; Table container Wraps<\/p>\n","protected":false},"author":1,"featured_media":521,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-520","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Tables - HTML Course<\/title>\n<meta name=\"description\" content=\"HTML tables organize and display structured data in rows and columns, enabling clear comparison, styling, accessibility, and layout.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/buhave.com\/courses\/html\/tables\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tables - HTML Course\" \/>\n<meta property=\"og:description\" content=\"HTML tables organize and display structured data in rows and columns, enabling clear comparison, styling, accessibility, and layout.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/buhave.com\/courses\/html\/tables\/\" \/>\n<meta property=\"og:site_name\" content=\"BUHAVE\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BeYouHave\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/naveedsafdarawan\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-19T11:18:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-20T12:57:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Tables.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Naveed Safdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Naveed Safdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/\"},\"author\":{\"name\":\"Naveed Safdar\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#\\\/schema\\\/person\\\/04fe0254e118521c9fbb3da39de5acca\"},\"headline\":\"Tables\",\"datePublished\":\"2025-05-19T11:18:35+00:00\",\"dateModified\":\"2025-05-20T12:57:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/\"},\"wordCount\":1059,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Tables.webp\",\"articleSection\":[\"HTML Course\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/\",\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/\",\"name\":\"Tables - HTML Course\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Tables.webp\",\"datePublished\":\"2025-05-19T11:18:35+00:00\",\"dateModified\":\"2025-05-20T12:57:18+00:00\",\"description\":\"HTML tables organize and display structured data in rows and columns, enabling clear comparison, styling, accessibility, and layout.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/#primaryimage\",\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Tables.webp\",\"contentUrl\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/04\\\/Tables.webp\",\"width\":1200,\"height\":628,\"caption\":\"Tables\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/html\\\/tables\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Courses\",\"item\":\"https:\\\/\\\/buhave.com\\\/courses\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML Course\",\"item\":\"https:\\\/\\\/buhave.com\\\/courses\\\/learn\\\/html\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Tables\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#website\",\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/\",\"name\":\"BUHAVE\",\"description\":\"Courses - Learn Online for Free\",\"publisher\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/buhave.com\\\/courses\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#organization\",\"name\":\"BUHAVE\",\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/buhave-course.webp\",\"contentUrl\":\"https:\\\/\\\/buhave.com\\\/courses\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/buhave-course.webp\",\"width\":375,\"height\":75,\"caption\":\"BUHAVE\"},\"image\":{\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/BeYouHave\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/buhave\",\"https:\\\/\\\/www.youtube.com\\\/@buhave\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/buhave.com\\\/courses\\\/#\\\/schema\\\/person\\\/04fe0254e118521c9fbb3da39de5acca\",\"name\":\"Naveed Safdar\",\"description\":\"I\u2019m Naveed Safdar - SEO Manager with over 10 years of experience in SEO and Digital Marketing. I\u2019ve had the privilege of working with leading national and international companies including Grafdom, PakWheels, Systems Limited, Confiz, Educative, and Dubizzle Labs. My expertise spans technical SEO, content strategy, organic growth, and performance analytics - helping businesses improve visibility, traffic, and ROI.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/naveedsafdar\\\/\",\"https:\\\/\\\/www.facebook.com\\\/naveedsafdarawan\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@naveedsafdar\"],\"url\":\"https:\\\/\\\/buhave.com\\\/courses\\\/author\\\/naveed-safdar\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tables - HTML Course","description":"HTML tables organize and display structured data in rows and columns, enabling clear comparison, styling, accessibility, and layout.","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:\/\/buhave.com\/courses\/html\/tables\/","og_locale":"en_US","og_type":"article","og_title":"Tables - HTML Course","og_description":"HTML tables organize and display structured data in rows and columns, enabling clear comparison, styling, accessibility, and layout.","og_url":"https:\/\/buhave.com\/courses\/html\/tables\/","og_site_name":"BUHAVE","article_publisher":"https:\/\/www.facebook.com\/BeYouHave\/","article_author":"https:\/\/www.facebook.com\/naveedsafdarawan\/","article_published_time":"2025-05-19T11:18:35+00:00","article_modified_time":"2025-05-20T12:57:18+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Tables.webp","type":"image\/webp"}],"author":"Naveed Safdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Naveed Safdar","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/buhave.com\/courses\/html\/tables\/#article","isPartOf":{"@id":"https:\/\/buhave.com\/courses\/html\/tables\/"},"author":{"name":"Naveed Safdar","@id":"https:\/\/buhave.com\/courses\/#\/schema\/person\/04fe0254e118521c9fbb3da39de5acca"},"headline":"Tables","datePublished":"2025-05-19T11:18:35+00:00","dateModified":"2025-05-20T12:57:18+00:00","mainEntityOfPage":{"@id":"https:\/\/buhave.com\/courses\/html\/tables\/"},"wordCount":1059,"commentCount":0,"publisher":{"@id":"https:\/\/buhave.com\/courses\/#organization"},"image":{"@id":"https:\/\/buhave.com\/courses\/html\/tables\/#primaryimage"},"thumbnailUrl":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Tables.webp","articleSection":["HTML Course"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/buhave.com\/courses\/html\/tables\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/buhave.com\/courses\/html\/tables\/","url":"https:\/\/buhave.com\/courses\/html\/tables\/","name":"Tables - HTML Course","isPartOf":{"@id":"https:\/\/buhave.com\/courses\/#website"},"primaryImageOfPage":{"@id":"https:\/\/buhave.com\/courses\/html\/tables\/#primaryimage"},"image":{"@id":"https:\/\/buhave.com\/courses\/html\/tables\/#primaryimage"},"thumbnailUrl":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Tables.webp","datePublished":"2025-05-19T11:18:35+00:00","dateModified":"2025-05-20T12:57:18+00:00","description":"HTML tables organize and display structured data in rows and columns, enabling clear comparison, styling, accessibility, and layout.","breadcrumb":{"@id":"https:\/\/buhave.com\/courses\/html\/tables\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/buhave.com\/courses\/html\/tables\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buhave.com\/courses\/html\/tables\/#primaryimage","url":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Tables.webp","contentUrl":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/04\/Tables.webp","width":1200,"height":628,"caption":"Tables"},{"@type":"BreadcrumbList","@id":"https:\/\/buhave.com\/courses\/html\/tables\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Courses","item":"https:\/\/buhave.com\/courses\/"},{"@type":"ListItem","position":2,"name":"HTML Course","item":"https:\/\/buhave.com\/courses\/learn\/html\/"},{"@type":"ListItem","position":3,"name":"Tables"}]},{"@type":"WebSite","@id":"https:\/\/buhave.com\/courses\/#website","url":"https:\/\/buhave.com\/courses\/","name":"BUHAVE","description":"Courses - Learn Online for Free","publisher":{"@id":"https:\/\/buhave.com\/courses\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/buhave.com\/courses\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/buhave.com\/courses\/#organization","name":"BUHAVE","url":"https:\/\/buhave.com\/courses\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/buhave.com\/courses\/#\/schema\/logo\/image\/","url":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/03\/buhave-course.webp","contentUrl":"https:\/\/buhave.com\/courses\/wp-content\/uploads\/2025\/03\/buhave-course.webp","width":375,"height":75,"caption":"BUHAVE"},"image":{"@id":"https:\/\/buhave.com\/courses\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/BeYouHave\/","https:\/\/www.linkedin.com\/company\/buhave","https:\/\/www.youtube.com\/@buhave"]},{"@type":"Person","@id":"https:\/\/buhave.com\/courses\/#\/schema\/person\/04fe0254e118521c9fbb3da39de5acca","name":"Naveed Safdar","description":"I\u2019m Naveed Safdar - SEO Manager with over 10 years of experience in SEO and Digital Marketing. I\u2019ve had the privilege of working with leading national and international companies including Grafdom, PakWheels, Systems Limited, Confiz, Educative, and Dubizzle Labs. My expertise spans technical SEO, content strategy, organic growth, and performance analytics - helping businesses improve visibility, traffic, and ROI.","sameAs":["https:\/\/www.linkedin.com\/in\/naveedsafdar\/","https:\/\/www.facebook.com\/naveedsafdarawan\/","https:\/\/www.youtube.com\/@naveedsafdar"],"url":"https:\/\/buhave.com\/courses\/author\/naveed-safdar\/"}]}},"_links":{"self":[{"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/posts\/520","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/comments?post=520"}],"version-history":[{"count":1,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/posts\/520\/revisions"}],"predecessor-version":[{"id":522,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/posts\/520\/revisions\/522"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/media\/521"}],"wp:attachment":[{"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/media?parent=520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/categories?post=520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buhave.com\/courses\/wp-json\/wp\/v2\/tags?post=520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}