1
00:00:01,760 --> 00:00:09,610
The next tag in our web page structure is the open head take similar to the HP email tag the head tag

2
00:00:09,610 --> 00:00:17,780
must also have a corresponding closing tag note that anything contained within the open head enclosing

3
00:00:17,850 --> 00:00:27,540
head tag will not be displayed visually within the content area of your browser for a better understanding

4
00:00:27,930 --> 00:00:29,950
of the content area.

5
00:00:30,180 --> 00:00:35,390
Let's preview this HMO page in our web browser to see what it looks like.

6
00:00:37,230 --> 00:00:47,650
To do that click on run and in my case and when to launch it in Google Chrome you can select your browser

7
00:00:47,650 --> 00:00:48,600
from this list here

8
00:00:57,110 --> 00:01:04,970
we can see what this HMO page will look like in our web browser the content area is this is defined

9
00:01:05,060 --> 00:01:07,220
is this region of the browser window

10
00:01:18,700 --> 00:01:25,720
the head take contains important instructions for your browser first it identifies the title of the

11
00:01:25,720 --> 00:01:27,700
page.

12
00:01:27,780 --> 00:01:37,760
For this reason the Open title enclosing title tags must be contained within the head tags the actual

13
00:01:37,760 --> 00:01:41,810
title of the page should be contained within the title tags

14
00:01:50,340 --> 00:01:53,240
the title of the page is displayed here

15
00:01:57,840 --> 00:02:06,300
you can see that the title of this page is my first web page and that corresponds to the text in between

16
00:02:06,300 --> 00:02:07,260
the title tags

17
00:02:13,400 --> 00:02:20,110
the next set of tags contained in our head tags is the meditates made it tags communicate with both

18
00:02:20,110 --> 00:02:26,490
the web browser and search engines to provide valuable information about your page

19
00:02:29,190 --> 00:02:30,870
let's start with the first meditate.

20
00:02:34,780 --> 00:02:43,790
This method tag is primarily intended for search engines it's known as the maiden name description the

21
00:02:43,800 --> 00:02:46,140
description is followed by the content

22
00:02:56,740 --> 00:03:03,250
it's this snippet of information below the link of a search result the method description describes

23
00:03:03,250 --> 00:03:10,860
the contents of the page to the searcher the goal of a better description is to persuade the searcher

24
00:03:11,310 --> 00:03:20,400
to click through to your website if a method description is not provided the search engine will automatically

25
00:03:20,400 --> 00:03:23,760
generate one based on the content of your page

26
00:03:33,200 --> 00:03:38,170
the next meditate indicates the character sets of the page

27
00:03:40,940 --> 00:03:50,610
in this tag the characters that used is UTF 8 the explanation as to why the UTF 8 character set is used

28
00:03:50,850 --> 00:03:58,170
among other alternatives is fairly technical to keep things less confusing we've included some links

29
00:03:58,170 --> 00:04:03,520
for further reading on character sets.

30
00:04:03,640 --> 00:04:12,320
Next we have the viewport meditate This is an important tag to include keep in mind that most users

31
00:04:12,710 --> 00:04:19,400
will not only view your web page through a computer screen but also through a wide range of mobile devices

32
00:04:20,640 --> 00:04:29,270
the viewpoint defines the users visible area of a web page the viewport varies depending on the device

33
00:04:29,990 --> 00:04:34,040
and will be smaller on a mobile phone than on a computer screen

34
00:04:37,150 --> 00:04:44,510
the viewport meditate gives the browser instructions on how to control the pages dimensions in scaling

35
00:04:47,330 --> 00:04:56,470
the width equals device dash with sets the width of the page to follow the screen with of the device

36
00:04:57,100 --> 00:05:07,490
which will vary depending on the device the initial scale equals one point 0 sets the initial zoom level

37
00:05:07,730 --> 00:05:17,420
when the page is first loaded by the browser this illustration provides an example of a web page without

38
00:05:17,420 --> 00:05:25,040
the viewport meditate in the same web page with the viewport meditate on a mobile device

39
00:05:29,420 --> 00:05:35,770
now that we've gone through some of the commonly used meditators let's go on to the next tag in our

40
00:05:35,770 --> 00:05:45,630
head take which is the open enclosed style take the code that is included within the style tags are

41
00:05:45,630 --> 00:05:56,410
referred to as style rules and they define what is known as the pages cascading style sheet or SS the

42
00:05:56,430 --> 00:06:02,810
style sheet can be used to define the formatting of just about any element within your HMO document

43
00:06:04,890 --> 00:06:14,190
it can be used to format anything from fonts line spacing font color table borders image capacity and

44
00:06:14,190 --> 00:06:22,590
hyperlink effects this course actually has an entire section devoted to CSX because of their importance

45
00:06:22,590 --> 00:06:30,400
in frequency of usage for this reason all you have to know right now is that the style sheet is located

46
00:06:30,490 --> 00:06:37,670
in the head tags the style tag on this demonstration page has one Wu

47
00:06:41,060 --> 00:06:51,300
body color red this means that all the text located in the body of this HMO document will be displayed

48
00:06:51,300 --> 00:07:01,930
in red but we'll explore this in much more detail later on the next block of code we see is a javascript

49
00:07:01,990 --> 00:07:11,960
function remember that JavaScript allows us to create interactive effects within web browsers the head

50
00:07:11,960 --> 00:07:20,870
take contains the JavaScript functions that will be called upon in the body of our HDMI document we

51
00:07:21,110 --> 00:07:29,590
have included a basic javascript function that will be used to convert the user's text input from lowercase

52
00:07:29,710 --> 00:07:30,760
to capital letters

53
00:07:33,840 --> 00:07:39,720
we'll see the javascript function in action when we move onto the body section of this HMO document

54
00:07:42,090 --> 00:07:49,300
please note this course has an entire section devoted to JavaScript coding so for now we've only included

55
00:07:49,300 --> 00:07:52,390
a very basic example for demonstration purposes.
