1
00:00:00,920 --> 00:00:08,420
Now, in this part, we are going to create some simple index page, an item page and also the error

2
00:00:08,420 --> 00:00:12,800
page instead of just we to America like this.

3
00:00:13,580 --> 00:00:17,090
So now we are going to create a voter poll reveals.

4
00:00:20,270 --> 00:00:24,890
And inside here, we create the index of XHTML.

5
00:00:25,770 --> 00:00:36,180
And then we just use the Emet to create the Indesit and now we just type a header to indicate it is

6
00:00:36,220 --> 00:00:37,110
index page.

7
00:00:39,920 --> 00:00:41,270
And then we call PD.

8
00:00:43,090 --> 00:00:47,230
And we change the name as the item page.

9
00:00:49,220 --> 00:00:51,740
And we changed the header to at Idam.

10
00:00:54,670 --> 00:00:58,210
And also to create a four ofl page.

11
00:01:02,030 --> 00:01:03,020
The error page.

12
00:01:07,250 --> 00:01:10,320
Now, we already created these three pages.

13
00:01:10,520 --> 00:01:18,860
Now we can go to the airport jets and instead of return, they were cook directly, we are going to

14
00:01:18,860 --> 00:01:19,790
return to file.

15
00:01:20,240 --> 00:01:26,550
So we used to respond and file and then we used the relative path.

16
00:01:27,390 --> 00:01:36,350
We use abuse and in that XHTML, but the Express need to know where is relative from.

17
00:01:36,830 --> 00:01:41,480
So we also need to pass the second argument of the route.

18
00:01:43,360 --> 00:01:43,990
And then.

19
00:01:45,210 --> 00:01:46,890
Underscore, underscore, direct.

20
00:01:47,970 --> 00:01:49,530
This is the current directory.

21
00:01:50,370 --> 00:01:54,450
So now if we refresh the page, we can see that in this page.

22
00:01:55,670 --> 00:01:59,690
So now we can copy and paste this to the at item.

23
00:02:01,780 --> 00:02:03,880
And we changed this to an item.

24
00:02:06,510 --> 00:02:10,800
Now, if we go to these and change the path to item.

25
00:02:11,750 --> 00:02:14,000
We can also see this item page.

26
00:02:15,090 --> 00:02:20,460
And if we go to the page that doesn't exist, we will get this error.

27
00:02:21,270 --> 00:02:24,690
So to fix this, we have to use the app to use.

28
00:02:27,690 --> 00:02:36,090
And here we also copy and paste here, and this time we are going to return to our page.

29
00:02:38,050 --> 00:02:44,930
So now if we go to these POF again, that doesn't exist, we refresh.

30
00:02:45,730 --> 00:02:48,100
You can see this is the error page.

31
00:02:48,280 --> 00:02:57,780
So no matter some pages that do not have any files, you will go to this error page and what its function

32
00:02:58,090 --> 00:03:00,060
is for every incoming class.

33
00:03:00,490 --> 00:03:07,950
You have to go to this party and there is no matches about where we turn this page.

34
00:03:08,290 --> 00:03:18,610
So we just can put this code at the bottom, because if we put these on the top just like this and every

35
00:03:18,650 --> 00:03:23,680
request will go to this page and we will not go to the next line of the code.

36
00:03:23,710 --> 00:03:31,570
So, for example, if we just go to the index page, we also just can go to the full full page because

37
00:03:31,570 --> 00:03:34,440
it already possibility's requirement.

38
00:03:34,880 --> 00:03:37,070
So we have to put this at the bottom.

39
00:03:37,330 --> 00:03:39,760
So now I can we can go to the index.

40
00:03:41,290 --> 00:03:42,880
And also at item.

41
00:03:44,180 --> 00:03:52,480
And if there is some big crash that doesn't exist, for example, it will go to the error page.
