• 1 year ago

Category

📚
Learning
Transcript
00:00Next element about which we are going to learn HTML is our heading elements.
00:04If I create different headings on my page, then we already have tags.
00:10We have 6 different heading tags in HTML.
00:14We take H1 to H6.
00:17One tag is my H1, which displays the biggest heading.
00:21Whatever you write in it, ABCD will be displayed in the largest size in heading terms.
00:28The second tag is H2, the third tag is H3, the fourth tag is H4, the fifth tag is H5, and the sixth tag is H6.
00:36And the size of this, it decreases.
00:39If you have the smallest heading, it will be in H6 and the biggest heading will be in H1.
00:45So, we represent these 6 different levels of section headings.
00:49How can we see this heading?
00:53If I go to my browser, I have opened a page, Avengers, Wikipedia.
00:59I opened this page.
01:00Now, in this page, the title is my biggest heading.
01:04What will be the biggest heading?
01:06This is my biggest heading.
01:08It will be my biggest heading.
01:10It will be the same level.
01:12It will be cast.
01:14If I have to write in H1 heading, if I have to write in H1 heading, then I will write in H3.
01:28And in this way, we create different levels of heading.
01:31Like if I talk about my HTML file, I can write H1 here.
01:34This is my opening tag and closing tag.
01:37Now, I can write my main heading.
01:40This is my main heading.
01:42My main heading is Avengers.
01:44So, in this way, I have displayed my main heading.
01:47Now, if I have displayed their small subheadings,
01:50I will display all the subheadings in H2.
01:54Now, I can write my name of Avengers here.
01:57I can write the name of Iron Man.
01:58If those who don't know about Avengers,
02:00this is a random name that I am writing.
02:02Here, I can write Thor.
02:04Next line, I can write Hulk.
02:07So, in this way, if I talk about my web browser,
02:10on my page, the main heading is a big display.
02:14Because I have written it in H1.
02:16And in H2, the heading is a small heading.
02:20So, in H1, we will write our main heading.
02:23And in H2, it is a small heading.
02:25In the same way, if I want to write in H3,
02:27I will display something here.
02:29So, it will be displayed in a small font.
02:31So, this is my small heading.
02:33Now, H1, H2, H3.
02:35These all the headings have a default size.
02:39H1 heading will always print the same default size.
02:42H2 heading will always show us on the same default size.
02:46H3 heading will also show us on the same default size.
02:49In this way, for six headings,
02:51six default sizes are defined before.
02:54And usually, when we are writing CSS,
02:55or when we are defining our web page,
02:57when we are defining our style,
02:58then we can change the font in the other text.
03:01But usually, for my H1 heading,
03:03H2 heading, H3 heading,
03:05we do not change their font size
03:07for the headings.
03:08Because by default,
03:09when the font size is defined before,
03:11then we do not play with HTML rules.
03:14So, in maximum cases,
03:17we will not change the default size of the headings.
03:19Which is the default size,
03:20we keep it like that.
03:21And if we want to write our HTML program,
03:24then in HTML code,
03:25and in file,
03:26usually, we have one H1 tag.
03:28So, we will display multiple H1 tags.
03:31So, H1 tag is this.
03:32We can keep our H2 tags multiple,
03:34depending on which level we are talking about,
03:36we are talking about our page.
03:37Now, if I want,
03:38then I have written the heading tags here.
03:40I can mix them with my paragraph tags.
03:42This is a paragraph.
03:44In this way,
03:45I can write a paragraph tag
03:46every heading.
03:48Let's save it.
03:50Let's refresh it.
03:51So, here,
03:52this is my main heading.
03:53This has come from H1 help.
03:55After that,
03:56my H2 help should be displayed
03:58with this line.
03:59So, in H2 help,
04:00this will be displayed.
04:01Then a paragraph.
04:02Then a paragraph.
04:03Then a paragraph.
04:04Then a paragraph.
04:05Then a paragraph.
04:06So, let's see straight,
04:07we know that the text size is small.
04:10And the headings are usually
04:12bigger than the text size.
04:14If I write here,
04:15where H2,
04:16H6 also,
04:17I mean,
04:18the smallest heading.
04:19If we do this,
04:20save and run.
04:21All headings font sizes
04:22are not bigger than the paragraph,
04:23but mostly headings
04:24that we are using in practical life.
04:26They are bigger than the paragraph.
04:28Because the paragraph usually
04:29uses its related content
04:30and normal text
04:31to display the text.
04:33But the headings
04:34the main thing,
04:35the main title,
04:36is used to display the text.
04:38So,
04:40there's not a page out there.
04:41It's not a page out there.

Recommended