1 00:00:05,280 --> 00:00:14,820 After seeing some formatting related text tags, let's start now talking about the tables you can insert 2 00:00:14,820 --> 00:00:24,580 inside our age HTML documents, so let's delete headings and paragraphs to end up with our file. 3 00:00:25,050 --> 00:00:31,890 Exactly as it was when we created it in one of the first lessons of the section. 4 00:00:32,250 --> 00:00:41,960 Once done this, let's insert now a classic table made up of rows and columns into our document. 5 00:00:42,570 --> 00:00:51,960 The table is recalled by the table tag so table and it needs inside. 6 00:00:51,960 --> 00:01:01,580 A series of other tags have to be inserted as these tags initially represent rows and colors. 7 00:01:02,430 --> 00:01:10,830 We are going to see then other tags which represent, for example, the part relative to the header 8 00:01:10,860 --> 00:01:18,840 on the table, the Parrella team to the photo and the part relative to the content there. 9 00:01:18,870 --> 00:01:32,040 For the body to insert rows and columns, you need to use the TR and T the attributes inserted inside 10 00:01:32,070 --> 00:01:34,650 our tags for the rows. 11 00:01:35,070 --> 00:01:41,890 The R would be inserted instead for the columns T d would be inserted. 12 00:01:42,420 --> 00:01:53,100 So if we wanted to insert a table made up, for example, all three columns and four rows, this would 13 00:01:53,100 --> 00:01:55,140 be the right procedure. 14 00:01:56,080 --> 00:02:00,460 Starting from the first row, let's insert. 15 00:02:02,180 --> 00:02:09,050 A second row and third row and a fourth. 16 00:02:10,070 --> 00:02:18,840 Now that we have inserted our rose into the table, let's insert Chalons into our PR tags. 17 00:02:19,280 --> 00:02:22,670 Therefore, let's insert the first column. 18 00:02:23,860 --> 00:02:25,450 Then the second. 19 00:02:26,570 --> 00:02:33,890 And the third and let's copy the structure in within the other TR Keg's. 20 00:02:41,200 --> 00:02:48,010 As you see, we have the structure of the table wholly inserted within the body. 21 00:02:48,460 --> 00:02:57,190 We have to insert in all our columns, therefore in every single cell of the rows a series of contents 22 00:02:57,190 --> 00:03:06,700 to make the browser interpret and read correctly the content and to make this content visualized as 23 00:03:06,700 --> 00:03:07,370 a table. 24 00:03:08,080 --> 00:03:14,950 So let's insert some names within the first cell of every row. 25 00:03:15,930 --> 00:03:20,380 Of course, you can see the names that most appeal to you. 26 00:03:21,210 --> 00:03:26,490 We are inserting apparel within the second row. 27 00:03:37,390 --> 00:03:40,570 And colors within the third. 28 00:03:48,680 --> 00:03:59,570 In so doing, we have just created a table containing names of people to whom we gave some apparel and 29 00:03:59,570 --> 00:04:02,420 then the color of the apparel itself. 30 00:04:02,630 --> 00:04:11,180 This is, of course, a simple exercise we are using to make you understand how to insert a table and 31 00:04:11,180 --> 00:04:16,160 how to correctly position it within an HDMI out. 32 00:04:16,460 --> 00:04:20,080 At this point, we can save the content created. 33 00:04:20,150 --> 00:04:21,500 Let's refresh. 34 00:04:21,500 --> 00:04:23,870 And we see that within our browser. 35 00:04:24,140 --> 00:04:32,240 We inserted our table with the names in the first column, apparel in the second column and colors in 36 00:04:32,240 --> 00:04:33,010 the third. 37 00:04:33,170 --> 00:04:41,630 This basic table structure can be implemented with a series of functionalities which may give some features 38 00:04:41,630 --> 00:04:42,490 to the table. 39 00:04:42,590 --> 00:04:48,090 So to make it more intelligible and visually engaging within the browser. 40 00:04:48,470 --> 00:04:56,900 For example, if we add an additional role at the beginning by coping the content already inserted, 41 00:04:57,380 --> 00:05:01,040 modifying our PDA into t h. 42 00:05:03,520 --> 00:05:11,710 We will get some heading tags representing, therefore, the contents of our chalons, therefore all 43 00:05:11,710 --> 00:05:12,910 the CDs. 44 00:05:13,950 --> 00:05:21,840 We have become P.H. and inside them we will insert the labels name where? 45 00:05:24,590 --> 00:05:25,310 Carlos. 46 00:05:27,630 --> 00:05:32,760 Now, let's save our document and let's see the result in the browser. 47 00:05:38,740 --> 00:05:46,360 As you can see, the headings have been inserted and they are bold with the aim, in fact, of representing 48 00:05:46,360 --> 00:05:49,110 what every single column contains. 49 00:05:49,600 --> 00:05:58,870 In addition to this series of tags, we can also insert some clear cut distinctions in the header section, 50 00:05:59,110 --> 00:06:03,740 in the body section and in the photo section of the table. 51 00:06:04,090 --> 00:06:14,980 Moreover, we can also add additional tags such as the had representing the head of the table inside 52 00:06:14,980 --> 00:06:15,820 the table. 53 00:06:17,560 --> 00:06:26,130 But before the first concert, the table a row, because it means to represent the head of eight. 54 00:06:27,420 --> 00:06:33,300 The body which represents the body of the table. 55 00:06:38,530 --> 00:06:42,220 And we might choose to add a photo. 56 00:06:43,420 --> 00:06:55,230 So a t fault, this also might contain a row closing our table, normally used, for example, to represent 57 00:06:55,310 --> 00:07:06,220 toters, as in the case of some of the single amount's inserted in within the table or else some texts 58 00:07:06,220 --> 00:07:10,380 that enclose the contents of every column. 59 00:07:10,570 --> 00:07:17,050 In our case, we can insert simply end to represent the end of our table. 60 00:07:17,050 --> 00:07:25,600 And once saved and refresh, we can verify that visually nothing has changed. 61 00:07:26,470 --> 00:07:31,600 By double checking our content, we can see that head. 62 00:07:32,640 --> 00:07:41,670 Body and food have been correctly inserted and they neatly detach the sections of our table, these 63 00:07:41,670 --> 00:07:47,270 attributes will be useful in case a much wider tables. 64 00:07:47,610 --> 00:07:53,910 And in that case, for example, the heading would be visible within the browser. 65 00:07:54,030 --> 00:08:01,040 And by scrolling down the content, it would be displayed without letting the header get overlooked. 66 00:08:01,530 --> 00:08:09,930 Let's say in second position, same story for the photo, which would remain visible light in the case 67 00:08:09,930 --> 00:08:11,260 of the toters. 68 00:08:11,640 --> 00:08:17,940 And this way, the system might exclusively display the content of the body. 69 00:08:19,060 --> 00:08:23,110 In the same way as far as a print preview. 70 00:08:24,220 --> 00:08:33,100 We would obtain this output headers and footers inside over the pages we want to print to conclude our 71 00:08:33,100 --> 00:08:35,200 lesson relative to tables. 72 00:08:35,590 --> 00:08:38,970 I'd like to talk to you about the caption tags. 73 00:08:39,670 --> 00:08:44,650 That is the caption section usually positioned above the table. 74 00:08:45,250 --> 00:08:54,790 In our case, for example, if we insert in here a caption with the label complete table, so with all 75 00:08:54,790 --> 00:09:04,420 our contents, by saving and refreshing, we would see that our caption gets positioned as middle aligned 76 00:09:04,690 --> 00:09:09,330 as far as formatting and above the content of our table. 77 00:09:09,520 --> 00:09:14,670 As you can see also from the inspection performed through Google Chrome. 78 00:09:15,370 --> 00:09:23,200 To sum up, this is an overview of what you can create with the tables inside an HDMI by. 79 00:09:24,390 --> 00:09:31,260 Now it's your turn to experiment a bit to make sure all the issues of this lesson are clear to you.