WEBVTT

00:00.000 --> 00:15.240
HTML elements are the building blocks of the web page. These elements are responsible

00:15.240 --> 00:21.160
for creating the pages and defining content in that web page. An element in HTML usually

00:21.160 --> 00:27.960
consists of a start tag and closing tag, and the content is inserted between them. Here,

00:27.960 --> 00:34.880
the forward slash denotes that it is end tag, or the closing tag. For example, the sample

00:34.880 --> 00:40.640
paragraph element would be starting paragraph tag like this, and ending paragraph tag

00:40.640 --> 00:46.720
like this. And inside that, we can act the paragraph content, something like this. This

00:46.720 --> 00:52.640
is a paragraph tag, and that's it. If we create an element like this, it will show something

00:52.640 --> 00:57.720
like this on the website. The important thing to notice if we skip that closing tag and

00:57.720 --> 01:04.120
expected results in errors may occur. So it is important to close the element with the end. Here,

01:04.120 --> 01:10.480
the the B element is used to add a paragraph to a website. Similarly, here we have the HTML

01:10.480 --> 01:17.600
element, which defines the root of an HTML document, the head element, which provides information

01:17.600 --> 01:23.760
about the HTML document. The title element defines the title of the HTML document, and

01:23.760 --> 01:29.920
the body element, which defines the body of HTML document, and so on. You can see that.

01:29.920 --> 01:35.200
All these elements have both start and end tags. However, some elements do not require

01:35.200 --> 01:41.600
an end tag because they do not contain any content. For example, the BR and HR elements.

01:41.600 --> 01:47.560
The BR element is used to insert a single line break in a text, and the HR element is used

01:47.560 --> 01:53.640
to insert a horizontal roll, or a thematic break in an HTML page, to divide or separate

01:53.640 --> 01:59.360
document sections. Since these elements do not require any content, we do not need to add

01:59.360 --> 02:05.000
an ending tag for them. These elements are also called as empty elements. Now let us create

02:05.000 --> 02:10.800
BR and HR elements and see how they work. If we add the BR tag between these two paragraphs

02:10.800 --> 02:16.080
elements, it will insert a single line break like this on the webpage. Similarly, if we

02:16.080 --> 02:20.720
add the HR element between these two paragraph elements, if you will insert a horizontal

02:20.720 --> 02:26.680
rule like this on the webpage, and that's it. In this video, we have learned HTML elements

02:26.680 --> 02:32.720
with examples, but these are only a few examples. HTML has many elements such as headings,

02:32.720 --> 02:38.840
images, links, tables, forms, and more. In the following videos, we will learn about

02:38.840 --> 02:41.160
each of these elements that's one by one.

