text
stringlengths
1
81
start
float64
0
10.1k
duration
float64
0
24.9
to show some different information here.
838.17
3.03
So let me first show what an ordered list might look like,
841.2
3.81
something that has numbers, 1, 2, 3.
845.01
2.4
An ordered as an HTML tag is just ol, ol for ordered list.
847.41
5.79
So I can add a tag that says ol.
853.2
3.06
And now inside of my ol element, my ordered list element,
856.26
3.72
I need a new element for every list item.
859.98
3.27
List item we're going to abbreviate to just li.
863.25
2.91
So the li tag in HTML is what we're going
866.16
2.49
to use to designate an item inside of an HTML list.
868.65
3.9
So here, for example, I could say li and then first item.
872.55
4.53
Then I could do the same thing, li second item
877.08
3.55
and then again li third item.
880.63
3.32
So what I have here are some elements and then elements
883.95
2.36
nested within other elements.
886.31
2.04
I have an ordered list element inside of which
888.35
2.37
are three other HTML elements, three list items that
890.72
3.45
are each indicating each of the individual items that are inside
894.17
4.08
of my HTML list.
898.25
2.45
I can now open this up by opening lists.html.
900.7
4.65
And this is what I see.
905.35
1.44
I see an ordered list, where I have item number 1,
906.79
2.49
first item, second item, third item.
909.28
2.7
Note that I didn't actually need to in the HTML anywhere
911.98
3.06
specify the number 1, the number 2, and the number 3.
915.04
2.97
When my web browser reads this should be an order list,
918.01
2.7
my web browser, Chrome in this case, just adds those numbers in for me
920.71
3.51
because it knows what an ordered list means
924.22
2.16
and it knows how to take the HTML that I've written and display it in the way
926.38
3.96
that I intend to the user.
930.34
3.24
Now, in addition to ordered list that all have numbers, 1, 2, 3,
933.58
3.81
we also have unordered lists that are just bullet
937.39
2.28
points, bullet points of information.
939.67
2.01
So I could, up above, add some more content to this HTML page.
941.68
4.32
I can say here is an unordered list.
946
3.82
And just as an ordered list we represented
949.82
2.36
using the ol tag in HTML, ol standing for ordered list,
952.18
4.8
likewise we can use the ul tag in HTML to create
956.98
4.11
an unordered list, u for unordered.
961.09
3.24
So here, we're going to add a ul tag.
964.33
1.79
And again, my text editor here is automatically
966.12
1.96
adding the closing tag here, this slash ul,
968.08
2.52
meaning the end of the unordered list.
970.6
1.89
And many text editors will do this now just so you, the programmer,
972.49
2.97
don't forget to add that.
975.46
2.28
And now inside of this unordered list, we're
977.74
1.98
again going to have some list items.
979.72
1.98
Also, using the li tag, here is one item.
981.7
3.55
And here is another item.
985.25
2.34
And here is yet another item.
987.59
4.16
If I go ahead and refresh the page now, I'm still on list.html,
991.75
3.39
I now see that on top of my ordered list,
995.14
2.25
I have an unordered list, where each item instead of being numbered
997.39
3.06
1, 2, 3, is instead labeled with just bullet point, bullet point, bullet
1,000.45
3.99
point, where each of these bullet points and each of these numbered items
1,004.44
3.36
is a list item element, or an li.
1,007.8
3.65
So hopefully now we can see that as we start
1,011.45
1.84
to explore these various different HTML tags and nesting HTML tags inside
1,013.29
4.86
of one another, we're able to create more and more interesting
1,018.15
3.42
web pages as a result.
1,021.57
2.38
So let's explore now what other types of web pages
1,023.95
2.64
we can create using other types of HTML elements.
1,026.59
3.47
In addition to lists, one thing you might imagine
1,030.06
2.37
is that one of the important things on the web
1,032.43
1.92
is not just displaying text, but also displaying other types of media,
1,034.35
3.43
like images, for example.
1,037.78
1.47
So how might we go about doing that?
1,039.25
2.53
Well, I can, for example--
1,041.78
1.52
let's go back into my text editor.
1,043.3
2.94
Let me create a new file that I'm going to call
1,046.24
2.12
image.html, which is going to contain some code for displaying some images.
1,048.36
5.35
I'll go ahead and go into hello.html and copy this text into the page,
1,053.71
4.24
again, change the title to Image.
1,057.95
2.1
And now, inside of the body, I'm going to add a new tag called image.
1,060.05
5.29
And the image tag has a couple of required attributes.
1,065.34
2.97
Remember that attributes are what we saw before things, like adding
1,068.31
2.8
a lang equals en to the top of my page to indicate that this web page is
1,071.11
4.89
written in English, for example.
1,076
2.34
And the image tag has a couple of required attributes that I need to add.
1,078.34
4.59
In particular, when I display an image on the page,
1,082.93
2.79
I need to specify what image I actually want displayed, for example.
1,085.72
4.19
So I might specify image src, short for source,
1,089.91
4.8
is going to be equal to what image do I actually want to display on this page.
1,094.71
5.2
And it just so happens that inside of my folder where I have image.html,
1,099.91
3.87
I have an image called cat.jpeg.
1,103.78
2.96
So I'm just going to specify cat.jpeg as the file name of the image
1,106.74
4.24
that I want to display.
1,110.98
2.06
And it turns out that images also have a second required attribute.
1,113.04
3.94
In addition to the file name or the link to whatever image I want to display,
1,116.98
4.41
I also need to provide some alternative text, a text-based representation
1,121.39
4.9
of what you're going to see on the image because in some cases,
1,126.29
2.63
some web browser might not be able to render the image correctly.
1,128.92
3.21
You might imagine if there's some error rendering the image,
1,132.13
2.55
or if someone's on a slow internet connection,
1,134.68
1.91
or if someone's using a screen reader and therefore can't actually
1,136.59
2.75
see the image.
1,139.34
0.71
We want some text-based representation of that image as well.
1,140.05
3.94
And so I'll provide some Alt text, some alternative text, that
1,143.99
3.23
can be used to substitute the image in case for some reason
1,147.22
2.79
we can't display the image.
1,150.01
1.56