{"id":1035,"date":"2015-11-06T02:16:46","date_gmt":"2015-11-06T02:16:46","guid":{"rendered":"https:\/\/courses.candelalearning.com\/zelixite115resources\/?post_type=chapter&#038;p=1035"},"modified":"2015-11-06T02:16:46","modified_gmt":"2015-11-06T02:16:46","slug":"reading-tables","status":"publish","type":"chapter","link":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/chapter\/reading-tables\/","title":{"raw":"Reading: Tables","rendered":"Reading: Tables"},"content":{"raw":"Here's how to add a simple table to your web page. This table has two rows and three cells in each row:\r\n<table class=\"notepad_table\">\r\n<tbody>\r\n<tr>\r\n<td>&lt;!DOCTYPE html&gt;\r\n&lt;html lang=\"en\"&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;The title goes here&lt;\/title&gt;\r\n&lt;meta charset=\"utf-8\"&gt;\r\n&lt;title&gt;Tables are Fun &lt;\/title&gt;\r\n<strong>&lt;style type=\"text\/css\"&gt;<\/strong>\r\n\r\n<strong>table<\/strong>\r\n<strong>{\r\n<\/strong><strong>border-style: solid;<\/strong>\r\n<strong>}<\/strong>\r\n\r\n<strong>td\r\n{\r\nborder-style: solid;\r\nborder-color: #FF66FF;\r\npadding: 10px;\r\n}\r\n&lt;\/style&gt;<\/strong>\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n&lt;h1&gt;My Lovely Table &lt;\/h1&gt;\r\n<strong>&lt;table&gt;\r\n&lt;tr&gt;\r\n&lt;td&gt;1st Cell&lt;\/td&gt;\r\n&lt;td&gt;2nd Cell&lt;\/td&gt;\r\n&lt;td&gt;3rd Cell&lt;\/td&gt;\r\n&lt;\/tr&gt;\r\n&lt;tr&gt;\r\n&lt;td&gt;4th Cell&lt;\/td&gt;\r\n&lt;td&gt;5th Cell&lt;\/td&gt;\r\n&lt;td&gt;6th Cell&lt;\/td&gt;\r\n&lt;\/tr&gt;\r\n&lt;\/table&gt;<\/strong>\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\nLet's analyze this code. The &lt;table&gt; tag starts the table, the &lt;tr&gt; tag starts the row, and the &lt;td&gt; tag starts the cell. (I think it stands for \"table data.\") Every opening tag has a corresponding ending tag. I've used embedded CSS to style the &lt;table&gt; and &lt;td&gt; tags. The table itself has a solid border. Each cell appears with a solid pink border, and each cell has 10 pixels of padding. Cell padding is the space between the contents of the cell and the cell border.","rendered":"<p>Here&#8217;s how to add a simple table to your web page. This table has two rows and three cells in each row:<\/p>\n<table class=\"notepad_table\">\n<tbody>\n<tr>\n<td>&lt;!DOCTYPE html&gt;<br \/>\n&lt;html lang=&#8221;en&#8221;&gt;<br \/>\n&lt;head&gt;<br \/>\n&lt;title&gt;The title goes here&lt;\/title&gt;<br \/>\n&lt;meta charset=&#8221;utf-8&#8243;&gt;<br \/>\n&lt;title&gt;Tables are Fun &lt;\/title&gt;<br \/>\n<strong>&lt;style type=&#8221;text\/css&#8221;&gt;<\/strong><\/p>\n<p><strong>table<\/strong><br \/>\n<strong>{<br \/>\n<\/strong><strong>border-style: solid;<\/strong><br \/>\n<strong>}<\/strong><\/p>\n<p><strong>td<br \/>\n{<br \/>\nborder-style: solid;<br \/>\nborder-color: #FF66FF;<br \/>\npadding: 10px;<br \/>\n}<br \/>\n&lt;\/style&gt;<\/strong><br \/>\n&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<br \/>\n&lt;h1&gt;My Lovely Table &lt;\/h1&gt;<br \/>\n<strong>&lt;table&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;1st Cell&lt;\/td&gt;<br \/>\n&lt;td&gt;2nd Cell&lt;\/td&gt;<br \/>\n&lt;td&gt;3rd Cell&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;tr&gt;<br \/>\n&lt;td&gt;4th Cell&lt;\/td&gt;<br \/>\n&lt;td&gt;5th Cell&lt;\/td&gt;<br \/>\n&lt;td&gt;6th Cell&lt;\/td&gt;<br \/>\n&lt;\/tr&gt;<br \/>\n&lt;\/table&gt;<\/strong><br \/>\n&lt;\/body&gt;<br \/>\n&lt;\/html&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Let&#8217;s analyze this code. The &lt;table&gt; tag starts the table, the &lt;tr&gt; tag starts the row, and the &lt;td&gt; tag starts the cell. (I think it stands for &#8220;table data.&#8221;) Every opening tag has a corresponding ending tag. I&#8217;ve used embedded CSS to style the &lt;table&gt; and &lt;td&gt; tags. The table itself has a solid border. Each cell appears with a solid pink border, and each cell has 10 pixels of padding. Cell padding is the space between the contents of the cell and the cell border.<\/p>\n\n\t\t\t <section class=\"citations-section\" role=\"contentinfo\">\n\t\t\t <h3>Candela Citations<\/h3>\n\t\t\t\t\t <div>\n\t\t\t\t\t\t <div id=\"citation-list-1035\">\n\t\t\t\t\t\t\t <div class=\"licensing\"><div class=\"license-attribution-dropdown-subheading\">CC licensed content, Shared previously<\/div><ul class=\"citation-list\"><li>Judy&#039;s HTML5 Tutorial. <strong>Authored by<\/strong>: Judy Jacobs Miller. <strong>Provided by<\/strong>: Extended Learning Institute (ELI), Northern Virginia Community College (NOVA). <strong>Located at<\/strong>: <a target=\"_blank\" href=\"http:\/\/www.nvcc.edu\/home\/jumiller\/html_tutorial\/tables.html\">http:\/\/www.nvcc.edu\/home\/jumiller\/html_tutorial\/tables.html<\/a>. <strong>License<\/strong>: <em><a target=\"_blank\" rel=\"license\" href=\"https:\/\/creativecommons.org\/licenses\/by-nc-nd\/4.0\/\">CC BY-NC-ND: Attribution-NonCommercial-NoDerivatives <\/a><\/em><\/li><\/ul><\/div>\n\t\t\t\t\t\t <\/div>\n\t\t\t\t\t <\/div>\n\t\t\t <\/section>","protected":false},"author":74,"menu_order":2,"template":"","meta":{"_candela_citation":"[{\"type\":\"cc\",\"description\":\"Judy\\'s HTML5 Tutorial\",\"author\":\"Judy Jacobs Miller\",\"organization\":\"Extended Learning Institute (ELI), Northern Virginia Community College (NOVA)\",\"url\":\"http:\/\/www.nvcc.edu\/home\/jumiller\/html_tutorial\/tables.html\",\"project\":\"\",\"license\":\"cc-by-nc-nd\",\"license_terms\":\"\"}]","CANDELA_OUTCOMES_GUID":"","pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[],"contributor":[],"license":[],"class_list":["post-1035","chapter","type-chapter","status-publish","hentry"],"part":390,"_links":{"self":[{"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/pressbooks\/v2\/chapters\/1035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/wp\/v2\/users\/74"}],"version-history":[{"count":1,"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/pressbooks\/v2\/chapters\/1035\/revisions"}],"predecessor-version":[{"id":1036,"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/pressbooks\/v2\/chapters\/1035\/revisions\/1036"}],"part":[{"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/pressbooks\/v2\/parts\/390"}],"metadata":[{"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/pressbooks\/v2\/chapters\/1035\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/wp\/v2\/media?parent=1035"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/pressbooks\/v2\/chapter-type?post=1035"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/wp\/v2\/contributor?post=1035"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/courses.lumenlearning.com\/sanjacinto-computerapps\/wp-json\/wp\/v2\/license?post=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}