{"id":278,"date":"2019-11-06T18:47:32","date_gmt":"2019-11-06T13:17:32","guid":{"rendered":"https:\/\/wpproonline.com\/?p=278"},"modified":"2026-02-26T10:48:39","modified_gmt":"2026-02-26T10:48:39","slug":"html-5-notes-for-professional-chapter-8-9-tablescomments","status":"publish","type":"post","link":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/","title":{"rendered":"HTML 5 Notes For Professional \u2013 Chapter \u2013 8 &#8211; 9 (Tables &#038; Comments)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">TABLES<\/h2>\n\n<p class=\"wp-block-paragraph\">The HTML <code><em><strong>&lt;table&gt;<\/strong><\/em><\/code> element allows web authors to display tabular data (such as text, images, links, other tables,etc.) in a two-dimensional table with rows and columns of cells.<\/p>\n\n<p><!--more--><\/p>\n\n<h3 class=\"wp-block-heading\">Simple Table<\/h3>\n\n<pre data-enlighter-language=\"html\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;table&gt;\n    &lt;tr&gt;\n        &lt;th&gt;Heading 1\/Column 1&lt;\/th&gt;\n        &lt;th&gt;Heading 2\/Column 2&lt;\/th&gt;\n    &lt;\/tr&gt;\n    &lt;tr&gt;\n        &lt;td&gt;Row 1 Data Column 1&lt;\/td&gt;\n        &lt;td&gt;Row 1 Data Column 2&lt;\/td&gt;\n    &lt;\/tr&gt;\n    &lt;tr&gt;\n        &lt;td&gt;Row 2 Data Column 1&lt;\/td&gt;\n        &lt;td&gt;Row 2 Data Column 2&lt;\/td&gt;\n    &lt;\/tr&gt;\n&lt;\/table&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\">This will render a <code><strong><em>&lt;table&gt;<\/em><\/strong><\/code> consisting of three total rows (<code><em><strong>&lt;tr&gt;<\/strong><\/em><\/code>): one row of header cells (<strong><em><code>&lt;th&gt;<\/code><\/em><\/strong>) and two rows of content cells (<code><em><strong>&lt;td&gt;<\/strong><\/em><\/code>). <strong><em><code>&lt;th&gt;<\/code><\/em><\/strong> elements are tabular headers and <code><strong><em>&lt;td&gt;<\/em><\/strong><\/code> elements are tabular data. You can put whatever you want inside a<em><strong><code> &lt;td&gt;<\/code><\/strong><\/em> or <em><strong><code>&lt;th&gt;<\/code><\/strong><\/em>.<\/p>\n\n<table>\n<tbody>\n<tr>\n<td><strong>Heading 1\/Column 1<\/strong><\/td>\n<td><strong>Heading 2\/Column 2<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Row 1 Data Column 1<\/td>\n<td>Row 1 Data Column 2<\/td>\n<\/tr>\n<tr>\n<td>Row 2 Data Column 1<\/td>\n<td>Row 2 Data Column 2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<h3 class=\"wp-block-heading\">Spanning columns or rows<\/h3>\n\n<p class=\"wp-block-paragraph\">Table cells can span multiple columns or rows using the <strong><em><code>colspan<\/code><\/em><\/strong> and <strong><em><code>rowspan<\/code><\/em><\/strong> attributes. These attributes can be applied to <strong><em><code>&lt;th&gt;<\/code><\/em><\/strong> and <strong><em><code>&lt;td&gt;<\/code><\/em><\/strong> elements.<\/p>\n\n<pre data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;table&gt;\n    &lt;tr&gt;\n        &lt;td&gt;row 1 col 1&lt;\/td&gt;\n        &lt;td&gt;row 1 col 2&lt;\/td&gt;\n        &lt;td&gt;row 1 col 3&lt;\/td&gt;\n    &lt;\/tr&gt;\n    &lt;tr&gt;\n        &lt;td colspan=\"3\"&gt;This second row spans all three columns&lt;\/td&gt;\n    &lt;\/tr&gt;\n    &lt;tr&gt;\n        &lt;td rowspan=\"2\"&gt;This cell spans two rows&lt;\/td&gt;\n        &lt;td&gt;row 3 col 2&lt;\/td&gt;\n        &lt;td&gt;row 3 col 3&lt;\/td&gt;\n    &lt;\/tr&gt;\n    &lt;tr&gt;\n        &lt;td&gt;row 4 col 2&lt;\/td&gt;\n        &lt;td&gt;row 4 col 3&lt;\/td&gt;\n    &lt;\/tr&gt;\n&lt;\/table&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\">Will result in<\/p>\n\n<table>\n<tbody>\n<tr>\n<td>row 1 col 1<\/td>\n<td>row 1 col 2<\/td>\n<td>row 1 col 3<\/td>\n<\/tr>\n<tr>\n<td colspan=\"3\">This second row spans all three columns<\/td>\n<\/tr>\n<tr>\n<td rowspan=\"2\">This cell spans two rows<\/td>\n<td>row 3 col 2<\/td>\n<td>row 3 col 3<\/td>\n<\/tr>\n<tr>\n<td>row 4 col 2<\/td>\n<td>row 4 col 3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<p class=\"wp-block-paragraph\">Note that you should not design a table where both rows and columns overlap as this is invalid HTML and the result is handled differently by different web browsers.<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>rowspan<\/strong> = A non-negative integer that specifies the number of rows spanned by a cell. The default value of this attribute is one (1). A value of zero (0) means that the cell will extend from the current row until the last row of the table (<strong><em><code>&lt;thead&gt;<\/code><\/em><\/strong>, <strong><em><code>&lt;tbody&gt;<\/code><\/em><\/strong>, or <code><strong><em>&lt;tfoot&gt;<\/em><\/strong><\/code>).<\/p>\n\n<p class=\"wp-block-paragraph\"><strong>colspan<\/strong> = A non-negative integer that specifies the number of columns spanned by the current cell. The default value of this attribute is one (1). A value of zero (0) means that the cell will extend from the current to the last column of the column group<strong><em><code> &lt;colgroup&gt;<\/code><\/em><\/strong> in which the cell is defined.<\/p>\n\n<h3 class=\"wp-block-heading\">Column Groups<\/h3>\n\n<p class=\"wp-block-paragraph\">Sometimes you may want to apply styling to a column or group of columns. Or for semantic purposes, you may want to group columns together. To do this, use <strong><em><code>&lt;colgroup&gt;<\/code><\/em><\/strong> and <code><strong><em>&lt;col&gt;<\/em><\/strong><\/code> elements.<\/p>\n\n<p class=\"wp-block-paragraph\">The optional <strong><em><code>&lt;colgroup&gt;<\/code><\/em><\/strong> tag allows you to group columns together. <strong><em><code>&lt;colgroup&gt;<\/code><\/em><\/strong> elements must be child elements of a <strong><em><code>&lt;table&gt;<\/code><\/em><\/strong> and must come after any <strong><em><code>&lt;caption&gt;<\/code><\/em><\/strong> elements and before any table content (e.g., <strong><em><code>&lt;tr&gt;, &lt;thead&gt;, &lt;tbody&gt;<\/code><\/em><\/strong>, etc.).<\/p>\n\n<pre data-enlighter-language=\"html\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;table&gt;\n    &lt;colgroup span=\"2\"&gt;&lt;\/colgroup&gt;\n    &lt;colgroup span=\"2\"&gt;&lt;\/colgroup&gt;\n    ...\n&lt;\/table&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\">The optional <strong><em><code>&lt;col&gt;<\/code><\/em><\/strong> tag allows you to reference individual columns or a range of columns without applying a logical grouping. <strong><em><code>&lt;col&gt;<\/code><\/em><\/strong> elements are optional, but if present, they must be inside a <strong><em><code>&lt;colgroup&gt;<\/code><\/em><\/strong> element.<\/p>\n\n<pre data-enlighter-language=\"html\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;table&gt;\n    &lt;colgroup&gt;\n        &lt;col id=\"MySpecialColumn\" \/&gt;\n        &lt;col \/&gt;\n    &lt;\/colgroup&gt;\n    &lt;colgroup&gt;\n        &lt;col \/&gt;\n        &lt;col span=\"2\" \/&gt;\n    &lt;\/colgroup&gt;\n    ...\n&lt;\/table&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\">The following CSS styles can be applied to <strong><em><code>&lt;colgroup&gt;<\/code><\/em><\/strong> and <strong><em><code>&lt;col&gt;<\/code><\/em><\/strong> elements:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong><em><code>border<\/code><\/em><\/strong><\/li>\n<li><strong><em><code>background<\/code><\/em><\/strong><\/li>\n<li><strong><em><code>width<\/code><\/em><\/strong><\/li>\n<li><strong><em><code>visibility<\/code><\/em><\/strong><\/li>\n<li><strong><em><code>display <\/code><\/em><\/strong>(as in display: none)\n<ul>\n<li><strong><em><code>display: none;<\/code><\/em><\/strong> will actually remove the columns from the display, causing the table to render as if those cells don&#8217;t exist<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n<p class=\"wp-block-paragraph\">For more information, see <a href=\"https:\/\/www.w3.org\/TR\/html5\/tabular-data.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"HTML5 Tabular data. (opens in a new tab)\">HTML5 Tabular data.<\/a><\/p>\n\n<h3 class=\"wp-block-heading\">Table with thead, tbody, tfoot, and caption<\/h3>\n\n<p class=\"wp-block-paragraph\">HTML also provides the tables with the <strong><em><code>&lt;thead&gt;, &lt;tbody&gt;, &lt;tfoot&gt;,<\/code><\/em><\/strong> and <strong><em><code>&lt;caption&gt;<\/code><\/em><\/strong> elements. These additional elements are useful for adding semantic value to your tables and for providing a place for separate CSS styling.<\/p>\n\n<p class=\"wp-block-paragraph\">When printing out a table that doesn&#8217;t fit onto one (paper) page, most browsers repeat the contents of <strong><em><code>&lt;thead&gt;<\/code><\/em><\/strong> on every page.<\/p>\n\n<p class=\"wp-block-paragraph\">There&#8217;s a specific order that must be adhered to, and we should be aware that not every element falls into place as one would expect. The following example demonstrates how our 4 elements should be placed.<\/p>\n\n<pre data-enlighter-language=\"html\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;table&gt;\n    &lt;caption&gt;Table Title&lt;\/caption&gt; &lt;!--| caption is the first child of table |--&gt;\n    &lt;thead&gt; &lt;!--======================| thead is after caption |--&gt;\n        &lt;tr&gt;\n            &lt;th&gt;Header content 1&lt;\/th&gt;\n            &lt;th&gt;Header content 2&lt;\/th&gt;\n        &lt;\/tr&gt;\n    &lt;\/thead&gt;\n    &lt;tbody&gt; &lt;!--======================| tbody is after thead |--&gt;\n        &lt;tr&gt;\n            &lt;td&gt;Body content 1&lt;\/td&gt;\n            &lt;td&gt;Body content 2&lt;\/td&gt;\n        &lt;\/tr&gt;\n    &lt;\/tbody&gt;\n    &lt;tfoot&gt;&lt;!--| tfoot can be placed before or after tbody, but not in a group of tbody. |--&gt;\n    &lt;!--| Regardless where tfoot is in markup, it is rendered at the bottom. |--&gt;\n        &lt;tr&gt;\n            &lt;td&gt;Footer content 1&lt;\/td&gt;\n            &lt;td&gt;Footer content 2&lt;\/td&gt;\n        &lt;\/tr&gt;\n    &lt;\/tfoot&gt;\n&lt;\/table&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\">The following example&#8217;s results are demonstrated twice&#8211;the first table lacks any styles, the second table has a few CSS properties applied: <strong><em><code>background-color, color, and border*<\/code><\/em><\/strong>. The styles are provided as a visual guide and is not an essential aspect of the topic at hand.<\/p>\n\n<figure><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/wpproonline.com\/wppro-app\/app-data\/uploads\/2019\/11\/html-tables-comments.jpg?fit=1024%2C831&amp;ssl=1\" alt=\"\" \/>\n<figcaption>Table with thead, tbody, tfoot, and caption<\/figcaption>\n<\/figure>\n\n<table>\n<tbody>\n<tr>\n<td><strong>Element<\/strong><\/td>\n<td><strong>Styles Applies<\/strong><\/td>\n<\/tr>\n<tr>\n<td>&lt;caption&gt;<\/td>\n<td>Yellow text on black background.<\/td>\n<\/tr>\n<tr>\n<td>&lt;thead&gt;<\/td>\n<td>Bold text on purple background.<\/td>\n<\/tr>\n<tr>\n<td>&lt;tbody&gt;<\/td>\n<td>Text on blue background.<\/td>\n<\/tr>\n<tr>\n<td>&lt;tfoot&gt;<\/td>\n<td>Text on green background.<\/td>\n<\/tr>\n<tr>\n<td>&lt;th&gt;<\/td>\n<td>Orange borders.<\/td>\n<\/tr>\n<tr>\n<td>&lt;td&gt;<\/td>\n<td>Red borders.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n\n<h3 class=\"wp-block-heading\">Heading scope<\/h3>\n\n<p class=\"wp-block-paragraph\"><strong><em>th<\/em><\/strong> elements are very commonly used to indicate headings for table rows and columns, like so:<\/p>\n\n<pre data-enlighter-language=\"html\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;table&gt;\n    &lt;thead&gt;\n        &lt;tr&gt;\n            &lt;td&gt;&lt;\/td&gt;\n            &lt;th&gt;Column Heading 1&lt;\/th&gt;\n            &lt;th&gt;Column Heading 2&lt;\/th&gt;\n        &lt;\/tr&gt;\n    &lt;\/thead&gt;\n    &lt;tbody&gt;\n        &lt;tr&gt;\n            &lt;th&gt;Row Heading 1&lt;\/th&gt;\n            &lt;td&gt;&lt;\/td&gt;\n            &lt;td&gt;&lt;\/td&gt;\n        &lt;\/tr&gt;\n        &lt;tr&gt;\n            &lt;th&gt;Row Heading 2&lt;\/th&gt;\n            &lt;td&gt;&lt;\/td&gt;\n            &lt;td&gt;&lt;\/td&gt;\n        &lt;\/tr&gt;\n    &lt;\/tbody&gt;\n&lt;\/table&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\">This can be improved for accessibility by the use of the scope attribute. The above example would be amended as follows:<\/p>\n\n<pre data-enlighter-language=\"html\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;table&gt;\n    &lt;thead&gt;\n        &lt;tr&gt;\n            &lt;td&gt;&lt;\/td&gt;\n            &lt;th scope=\"col\"&gt;Column Heading 1&lt;\/th&gt;\n            &lt;th scope=\"col\"&gt;Column Heading 2&lt;\/th&gt;\n        &lt;\/tr&gt;\n    &lt;\/thead&gt;\n    &lt;tbody&gt;\n        &lt;tr&gt;\n            &lt;th scope=\"row\"&gt;Row Heading 1&lt;\/th&gt;\n            &lt;td&gt;&lt;\/td&gt;\n            &lt;td&gt;&lt;\/td&gt;\n        &lt;\/tr&gt;\n        &lt;tr&gt;\n            &lt;th scope=\"row\"&gt;Row Heading 1&lt;\/th&gt;\n            &lt;td&gt;&lt;\/td&gt;\n            &lt;td&gt;&lt;\/td&gt;\n        &lt;\/tr&gt;\n    &lt;\/tbody&gt;\n&lt;\/table&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\"><code><em><strong>scope<\/strong><\/em><\/code> is known as an enumerated attribute, meaning that it can have a value from a specific set of possible values. This set includes:<\/p>\n\n<ul class=\"wp-block-list\">\n<li><strong><em><code>col<\/code><\/em><\/strong><\/li>\n<li><strong><em><code>row<\/code><\/em><\/strong><\/li>\n<li><strong><em><code>colgroup<\/code><\/em><\/strong><\/li>\n<li><strong><em><code>rowgroup<\/code><\/em><\/strong><\/li>\n<\/ul>\n\n<h4 class=\"wp-block-heading\">References:<\/h4>\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Element\/th#attr-scope\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Element\/th#attr-scope\n (opens in a new tab)\">https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTML\/Element\/th#attr-scope<br \/><\/a><a href=\"https:\/\/www.w3.org\/TR\/WCAG20-TECHS\/H63.html\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"https:\/\/www.w3.org\/TR\/WCAG20-TECHS\/H63.html (opens in a new tab)\">https:\/\/www.w3.org\/TR\/WCAG20-TECHS\/H63.html<\/a><\/p>\n\n<h2 class=\"wp-block-heading\">COMMENTS<\/h2>\n\n<p class=\"wp-block-paragraph\">Similar to other programming, markup, and markdown languages, comments in HTML provide other developers with development specific information without affecting the user interface. Unlike other languages however, HTML comments can be used to specify HTML elements for Internet Explorer only. This topic explains how to write HTML comments, and their functional applications.<\/p>\n\n<h4 class=\"wp-block-heading\">Creating comments<\/h4>\n\n<p class=\"wp-block-paragraph\">HTML comments can be used to leave notes to yourself or other developers about a specific point in code. They can be initiated with &lt;!&#8211; and concluded with &#8211;&gt;, like so:<\/p>\n\n<pre><code>&lt;!-- I'm an HTML comment! --&gt;<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">They can be incorporated inline within other content:<\/p>\n\n<pre><code>&lt;h1&gt;This part will be displayed &lt;!-- while this will not be displayed --&gt;.&lt;\/h1&gt;<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">They can also span multiple lines to provide more information:<\/p>\n\n<pre><code>&lt;!-- This is a multiline HTML comment.\n Whatever is in here will not be rendered by the browser.\n You can \"comment out\" entire sections of HTML code.\n--&gt;<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">However, they <strong><em><code>cannot<\/code><\/em><\/strong> appear within another HTML tag, like this:<\/p>\n\n<pre><code>&lt;h1 &lt;!-- testAttribute=\"something\" --&gt;&gt;This will not work&lt;\/h1&gt;<\/code><\/pre>\n\n<p class=\"wp-block-paragraph\">This produces invalid HTML as the entire <strong><em><code>&lt;h1 &lt;!-- testAttribute=\"something\" --&gt;<\/code><\/em><\/strong> block would be considered a single start tag h1 with some other invalid information contained within it, followed by a single <strong><em><code>&gt;<\/code><\/em><\/strong> closing bracket that does nothing.<\/p>\n\n<p class=\"wp-block-paragraph\">For compatibility with tools that try to parse HTML as XML or SGML, the body of your comment should not contain two dashes <code><strong><em>--<\/em><\/strong><\/code>.<\/p>\n\n<h4 class=\"wp-block-heading\">Commenting out whitespace between inline elements<\/h4>\n\n<p class=\"wp-block-paragraph\">Inline display elements, usually such as span or a, will include up to one white-space character before and after them in the document. In order to avoid very long lines in the markup (that are hard to read) and unintentional white-space (which affects formatting), the white-space can be commented out.<\/p>\n\n<pre data-enlighter-language=\"html\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!-- Use an HTML comment to nullify the newline character below: --&gt;\n&lt;a href=\"#\"&gt;I hope there will be no extra whitespace after this!&lt;\/a&gt;&lt;!--\n--&gt;&lt;button&gt;Foo&lt;\/button&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\">Try it without a comment between the inline elements, and there will be one space between them. Sometimes picking up the space character is desired.<\/p>\n\n<p class=\"wp-block-paragraph\">Example code:<\/p>\n\n<pre data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!-- Use an HTML comment to nullify the newline character below: --&gt;\n&lt;a href=\"#\"&gt;I hope there will be no extra whitespace after this!&lt;\/a&gt;&lt;!--\n--&gt;&lt;button&gt;Foo&lt;\/button&gt;\n&lt;hr&gt;\n&lt;!-- Without it, you can notice a small formatting difference: --&gt;\n&lt;a href=\"#\"&gt;I hope there will be no extra whitespace after this!&lt;\/a&gt;\n&lt;button&gt;Foo&lt;\/button&gt;<\/pre>\n\n<p class=\"wp-block-paragraph\">Output:<\/p>\n\n<figure><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/wpproonline.com\/wppro-app\/app-data\/uploads\/2019\/11\/Image-2019-11-06-at-6.46.20-PM.png?fit=1024%2C167&amp;ssl=1\" alt=\"\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>TABLES The HTML &lt;table&gt; element allows web authors to display tabular data (such as text, images, links, other tables,etc.) in a two-dimensional table with rows and columns of cells.<\/p>\n","protected":false},"author":1,"featured_media":279,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[76,111],"tags":[110,112,129,130,113],"class_list":["post-278","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html","category-html-5-notes-for-professional","tag-html-5-notes","tag-html-5-tutorial","tag-html-comments","tag-html-tables","tag-html5"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>HTML 5 Notes For Professional \u2013 Chapter \u2013 8 - 9 (Tables &amp; Comments) - DigitalHubZ<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML 5 Notes For Professional \u2013 Chapter \u2013 8 - 9 (Tables &amp; Comments)\" \/>\n<meta property=\"og:description\" content=\"TABLES The HTML &lt;table&gt; element allows web authors to display tabular data (such as text, images, links, other tables,etc.) in a two-dimensional table with rows and columns of cells.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/\" \/>\n<meta property=\"og:site_name\" content=\"DigitalHubZ\" \/>\n<meta property=\"article:published_time\" content=\"2019-11-06T13:17:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T10:48:39+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/HTML-5-Notes-For-Professional-chapter-8-9tables-and-comments.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"945\" \/>\n\t<meta property=\"og:image:height\" content=\"394\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DigitalHubZ\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DigitalHubZ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/\"},\"author\":{\"name\":\"DigitalHubZ\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/person\\\/5a4074d837d6e5d22d665e5b7ca9e873\"},\"headline\":\"HTML 5 Notes For Professional \u2013 Chapter \u2013 8 &#8211; 9 (Tables &#038; Comments)\",\"datePublished\":\"2019-11-06T13:17:32+00:00\",\"dateModified\":\"2026-02-26T10:48:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/\"},\"wordCount\":928,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/HTML-5-Notes-For-Professional-chapter-8-9tables-and-comments.jpg\",\"keywords\":[\"HTML 5 Notes\",\"HTML 5 Tutorial\",\"HTML Comments\",\"HTML Tables\",\"HTML5\"],\"articleSection\":[\"HTML\",\"HTML 5 Notes For Professional\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/\",\"name\":\"HTML 5 Notes For Professional \u2013 Chapter \u2013 8 - 9 (Tables & Comments) - DigitalHubZ\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/HTML-5-Notes-For-Professional-chapter-8-9tables-and-comments.jpg\",\"datePublished\":\"2019-11-06T13:17:32+00:00\",\"dateModified\":\"2026-02-26T10:48:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/HTML-5-Notes-For-Professional-chapter-8-9tables-and-comments.jpg\",\"contentUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/11\\\/HTML-5-Notes-For-Professional-chapter-8-9tables-and-comments.jpg\",\"width\":945,\"height\":394,\"caption\":\"HTML-5-Notes-For-Professional-chapter-8-9(tables and comments)\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/html-5-notes-for-professional-chapter-8-9-tablescomments\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML 5 Notes For Professional \u2013 Chapter \u2013 8 &#8211; 9 (Tables &#038; Comments)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\",\"name\":\"DigitalHubZ\",\"description\":\"Future-Ready Digital Solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#organization\",\"name\":\"DigitalHubZ\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/digitalhubz.webp\",\"contentUrl\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/03\\\/digitalhubz.webp\",\"width\":1232,\"height\":369,\"caption\":\"DigitalHubZ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/#\\\/schema\\\/person\\\/5a4074d837d6e5d22d665e5b7ca9e873\",\"name\":\"DigitalHubZ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g\",\"caption\":\"DigitalHubZ\"},\"sameAs\":[\"https:\\\/\\\/digitalhubz.com\"],\"url\":\"https:\\\/\\\/www.digitalhubz.com\\\/blog\\\/author\\\/digi_v1_wp\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"HTML 5 Notes For Professional \u2013 Chapter \u2013 8 - 9 (Tables & Comments) - DigitalHubZ","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:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/","og_locale":"en_US","og_type":"article","og_title":"HTML 5 Notes For Professional \u2013 Chapter \u2013 8 - 9 (Tables & Comments)","og_description":"TABLES The HTML &lt;table&gt; element allows web authors to display tabular data (such as text, images, links, other tables,etc.) in a two-dimensional table with rows and columns of cells.","og_url":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/","og_site_name":"DigitalHubZ","article_published_time":"2019-11-06T13:17:32+00:00","article_modified_time":"2026-02-26T10:48:39+00:00","og_image":[{"width":945,"height":394,"url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/HTML-5-Notes-For-Professional-chapter-8-9tables-and-comments.jpg","type":"image\/jpeg"}],"author":"DigitalHubZ","twitter_card":"summary_large_image","twitter_misc":{"Written by":"DigitalHubZ","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/#article","isPartOf":{"@id":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/"},"author":{"name":"DigitalHubZ","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/person\/5a4074d837d6e5d22d665e5b7ca9e873"},"headline":"HTML 5 Notes For Professional \u2013 Chapter \u2013 8 &#8211; 9 (Tables &#038; Comments)","datePublished":"2019-11-06T13:17:32+00:00","dateModified":"2026-02-26T10:48:39+00:00","mainEntityOfPage":{"@id":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/"},"wordCount":928,"commentCount":0,"publisher":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/HTML-5-Notes-For-Professional-chapter-8-9tables-and-comments.jpg","keywords":["HTML 5 Notes","HTML 5 Tutorial","HTML Comments","HTML Tables","HTML5"],"articleSection":["HTML","HTML 5 Notes For Professional"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/","url":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/","name":"HTML 5 Notes For Professional \u2013 Chapter \u2013 8 - 9 (Tables & Comments) - DigitalHubZ","isPartOf":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/#primaryimage"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/#primaryimage"},"thumbnailUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/HTML-5-Notes-For-Professional-chapter-8-9tables-and-comments.jpg","datePublished":"2019-11-06T13:17:32+00:00","dateModified":"2026-02-26T10:48:39+00:00","breadcrumb":{"@id":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/#primaryimage","url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/HTML-5-Notes-For-Professional-chapter-8-9tables-and-comments.jpg","contentUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2019\/11\/HTML-5-Notes-For-Professional-chapter-8-9tables-and-comments.jpg","width":945,"height":394,"caption":"HTML-5-Notes-For-Professional-chapter-8-9(tables and comments)"},{"@type":"BreadcrumbList","@id":"https:\/\/www.digitalhubz.com\/blog\/html-5-notes-for-professional-chapter-8-9-tablescomments\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.digitalhubz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"HTML 5 Notes For Professional \u2013 Chapter \u2013 8 &#8211; 9 (Tables &#038; Comments)"}]},{"@type":"WebSite","@id":"https:\/\/www.digitalhubz.com\/blog\/#website","url":"https:\/\/www.digitalhubz.com\/blog\/","name":"DigitalHubZ","description":"Future-Ready Digital Solutions","publisher":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.digitalhubz.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.digitalhubz.com\/blog\/#organization","name":"DigitalHubZ","url":"https:\/\/www.digitalhubz.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2023\/03\/digitalhubz.webp","contentUrl":"https:\/\/www.digitalhubz.com\/blog\/wp-content\/uploads\/2023\/03\/digitalhubz.webp","width":1232,"height":369,"caption":"DigitalHubZ"},"image":{"@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.digitalhubz.com\/blog\/#\/schema\/person\/5a4074d837d6e5d22d665e5b7ca9e873","name":"DigitalHubZ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/414c5bb85907e15e0f840541718ecc7420d52ea432b33f6a57761a674a52ebb7?s=96&d=mm&r=g","caption":"DigitalHubZ"},"sameAs":["https:\/\/digitalhubz.com"],"url":"https:\/\/www.digitalhubz.com\/blog\/author\/digi_v1_wp\/"}]}},"_links":{"self":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/comments?post=278"}],"version-history":[{"count":4,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/278\/revisions"}],"predecessor-version":[{"id":54886,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/posts\/278\/revisions\/54886"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/media\/279"}],"wp:attachment":[{"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/media?parent=278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/categories?post=278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.digitalhubz.com\/blog\/wp-json\/wp\/v2\/tags?post=278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}