{"id":7521,"date":"2013-01-28T11:25:16","date_gmt":"2013-01-28T11:25:16","guid":{"rendered":"http:\/\/vskills.in\/certification\/tutorial\/?p=7521"},"modified":"2024-04-12T14:17:01","modified_gmt":"2024-04-12T08:47:01","slug":"table-tr-td-and-th-tags","status":"publish","type":"page","link":"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/","title":{"rendered":"Table, tr, td and th tags"},"content":{"rendered":"<p>Various tags are used for creating a table in a web page and those tags which are used for creation, are discussed herewith<\/p>\n<p><strong>&lt;table&gt; tag<\/strong> &#8211; A table is created by using &lt;table&gt; tag. In the &lt;table&gt; element the table is built row by row. A row is present in a &lt;tr&gt; tag, which stands for \u2018table row\u2019. And each cell is then written inside the row element using a &lt;td&gt; tag, which stands for \u2018table data\u2019. Each cell must have a &lt;td&gt; or a &lt;th&gt; tag to display correctly. An example is shown<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"276\"><strong>HTML code<\/strong><\/p>\n<p>&lt;table border=&#8221;1&#8243;&gt;<\/p>\n<p>&lt;tr&gt;<\/p>\n<p>&lt;td&gt;Row 1, Column 1&lt;\/td&gt;<\/p>\n<p>&lt;td&gt;Row 1, Column 2&lt;\/td&gt;<\/p>\n<p>&lt;\/tr&gt;<\/p>\n<p>&lt;tr&gt;<\/p>\n<p>&lt;td&gt;Row 2, Column 1&lt;\/td&gt;<\/p>\n<p>&lt;td&gt;Row 2, Column 2&lt;\/td&gt;<\/p>\n<p>&lt;\/tr&gt;<\/p>\n<p>&lt;\/table&gt;<\/td>\n<td width=\"314\"><strong>Browser output<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-50291\" src=\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Table-tr-td-and-th-tags.png\" alt=\"Table, tr, td and th tags\" width=\"241\" height=\"65\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>&lt;tr&gt; tag<\/strong> &#8211; It is used to contain each row in a table. Information appearing in it appears on the same row.<\/p>\n<p><strong>&lt;td&gt; tag<\/strong> &#8211; Every cell in a table is given by a &lt;td&gt; tag for cells having data or a &lt;th&gt; tag for cells containing table headings. The content of a &lt;td&gt; element, are usually displayed left \u2013 aligned. The &lt;td&gt; tag\u2019s set of attributes applies to that one cell carrying it.<\/p>\n<p><strong>&lt;th&gt; tag<\/strong> &#8211; Heading for a table can be defined using &lt;th&gt; tag. It replaces the &lt;td&gt; tag in the top row of the table which is usually used to represent table heading. It can also be used else where in the table for emphasis.<\/p>\n<table>\n<tbody>\n<tr>\n<td width=\"276\"><strong>HTML code<\/strong><\/p>\n<p>&lt;table border=&#8221;1&#8243;&gt;<\/p>\n<p>&lt;tr&gt;<\/p>\n<p>&lt;th&gt;Heading 1&lt;\/th&gt;<\/p>\n<p>&lt;th&gt;Heading 2&lt;\/th&gt;<\/p>\n<p>&lt;\/tr&gt;<\/p>\n<p>&lt;tr&gt;<\/p>\n<p>&lt;td&gt;Cell 1&lt;\/td&gt;<\/p>\n<p>&lt;td&gt;Cell 2&lt;\/td&gt;<\/p>\n<p>&lt;\/tr&gt;<\/p>\n<p>&lt;\/table&gt;<\/td>\n<td width=\"314\"><strong>Browser output<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-50290\" src=\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Table-tr-td-and-th-tags-01.png\" alt=\"Table, tr, td and th tags 01\" width=\"161\" height=\"68\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/www.vskills.in\/certification\/tutorial\/dhtml-and-javascript-developer\/\" target=\"_blank\" rel=\"noopener noreferrer\">Back to Tutorial<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Various tags are used for creating a table in a web page and those tags which are used for creation, are discussed herewith &lt;table&gt; tag &#8211; A table is created by using &lt;table&gt; tag. In the &lt;table&gt; element the table is built row by row. A row is present in a &lt;tr&gt; tag, which stands&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[3352],"tags":[2752,2750,8651],"class_list":["post-7521","page","type-page","status-publish","hentry","category-dhtml-and-javascript","tag-dhtml-and-java-script","tag-dhtml-and-java-script-developer","tag-table-tags"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Table, tr, td and th tags - Tutorial<\/title>\n<meta name=\"description\" content=\"Table, tr, td and th tags. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.\" \/>\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.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Table, tr, td and th tags - Tutorial\" \/>\n<meta property=\"og:description\" content=\"Table, tr, td and th tags. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/vskills.in\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-12T08:47:01+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Table-tr-td-and-th-tags.png\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/\",\"name\":\"Table, tr, td and th tags - Tutorial\",\"isPartOf\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Table-tr-td-and-th-tags.png\",\"datePublished\":\"2013-01-28T11:25:16+00:00\",\"dateModified\":\"2024-04-12T08:47:01+00:00\",\"description\":\"Table, tr, td and th tags. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/#primaryimage\",\"url\":\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Table-tr-td-and-th-tags.png\",\"contentUrl\":\"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Table-tr-td-and-th-tags.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Table, tr, td and th tags\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#website\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"name\":\"Tutorial\",\"description\":\"Vskills - A initiative in elearning and certification\",\"publisher\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#organization\",\"name\":\"Vskills\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"contentUrl\":\"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg\",\"width\":73,\"height\":55,\"caption\":\"Vskills\"},\"image\":{\"@id\":\"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/vskills.in\/\",\"https:\/\/x.com\/vskills_in\",\"https:\/\/www.linkedin.com\/company-beta\/1371554\/\",\"https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Table, tr, td and th tags - Tutorial","description":"Table, tr, td and th tags. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.","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.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/","og_locale":"en_US","og_type":"article","og_title":"Table, tr, td and th tags - Tutorial","og_description":"Table, tr, td and th tags. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.","og_url":"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/","og_site_name":"Tutorial","article_publisher":"https:\/\/www.facebook.com\/vskills.in\/","article_modified_time":"2024-04-12T08:47:01+00:00","og_image":[{"url":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Table-tr-td-and-th-tags.png","type":"","width":"","height":""}],"twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/","name":"Table, tr, td and th tags - Tutorial","isPartOf":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/#primaryimage"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/#primaryimage"},"thumbnailUrl":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Table-tr-td-and-th-tags.png","datePublished":"2013-01-28T11:25:16+00:00","dateModified":"2024-04-12T08:47:01+00:00","description":"Table, tr, td and th tags. Govt of India Certification for DHTML and Javascript professionals. Get Certified and improve employability. Certification assesses candidates in DHTML.","breadcrumb":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/#primaryimage","url":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Table-tr-td-and-th-tags.png","contentUrl":"http:\/\/www.vskills.in\/lms\/wp-content\/uploads\/2016\/07\/Table-tr-td-and-th-tags.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/table-tr-td-and-th-tags\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.vskills.in\/certification\/tutorial\/"},{"@type":"ListItem","position":2,"name":"Table, tr, td and th tags"}]},{"@type":"WebSite","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#website","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","name":"Tutorial","description":"Vskills - A initiative in elearning and certification","publisher":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.vskills.in\/certification\/tutorial\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#organization","name":"Vskills","url":"https:\/\/www.vskills.in\/certification\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","contentUrl":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-content\/uploads\/2017\/07\/vskills-min-logo.jpg","width":73,"height":55,"caption":"Vskills"},"image":{"@id":"https:\/\/www.vskills.in\/certification\/tutorial\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/vskills.in\/","https:\/\/x.com\/vskills_in","https:\/\/www.linkedin.com\/company-beta\/1371554\/","https:\/\/www.youtube.com\/channel\/UCMWnscxPwRF_PqXo9B7q_Tw"]}]}},"_links":{"self":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/7521","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/comments?post=7521"}],"version-history":[{"count":7,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/7521\/revisions"}],"predecessor-version":[{"id":121649,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/pages\/7521\/revisions\/121649"}],"wp:attachment":[{"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/media?parent=7521"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/categories?post=7521"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vskills.in\/certification\/tutorial\/wp-json\/wp\/v2\/tags?post=7521"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}