Skip to playerSkip to main contentSkip to footer
  • 3 months ago

Category

📚
Learning
Transcript
00:00Now, first of all, we are going to talk about paragraph elements.
00:03For creating paragraph elements, we use p-tag, which represents a paragraph.
00:09Now, when we talk about paragraph, paragraph doesn't mean only text.
00:13Paragraph means that all the contents that we want to display together.
00:18So, it's not necessary to display only text in it.
00:20It can be possible that our bold text will come.
00:23It can be possible that we want to display both images and text together.
00:27So, whatever content we want to display together, we use our paragraph-tag.
00:33Now, paragraph-tag is another special thing that it creates space.
00:37Which way?
00:38One time, we go into our HTML file.
00:41I wrote paragraph-tags in my file and I'm going to write this is my first paragraph.
00:48After writing this is my first paragraph, I gave a lot of space.
00:52And next, I'm going to write this is my second paragraph.
00:56Now, I'm going to give one line and display it.
01:00Let's save it.
01:01And as I have saved it, what happened automatically?
01:04This is all information is on my same line.
01:07Why is this happening?
01:08If you are saving in your VS Code,
01:10and you are going to take it on the next line,
01:12and you are not going to save it on the same line,
01:14then the output is going to be the same.
01:16So, in the paragraph, if I write two paragraphs,
01:19then all of the information is on the same line.
01:22Let's say, I have given a lot of space here,
01:25and now I have saved it.
01:26Then it is automatically that way.
01:28Here, the conclusion is that HTML,
01:30which you give more spaces,
01:32or you want to display things on the next line,
01:35that HTML does not know all of them.
01:38If you have written things in a single paragraph,
01:41then all of the things will be displayed in one line.
01:44That means, it will be displayed in a single line.
01:46I mean, if I want to copy and paste it,
01:49then I will save it.
01:51And now, if I refresh it,
01:53then all of the things will be displayed in one line.
01:55But if I need a little space in these things,
01:57then I have to create a new paragraph tag.
01:59Like, if I remove the information from here,
02:01and then I will put a paragraph tag.
02:03Then I can display all of this information.
02:05And now, I can display all of these things.
02:07And now, the things are different.
02:09So, usually, if this is a set of information,
02:11and this is my second set of information,
02:12and if I use a paragraph tag as well.
02:14Then I have to use two paragraph tags
02:16for all of these things.
02:17So, usually, if I use a set of information,
02:19and if this is my second set of information,
02:21and if I display the two both paragraphs,
02:23then I will use two paragraph tags.
02:25Therefore, our paragraph tags
02:28are connected or related information
02:30or content
02:32or our content.
02:34The first paragraph
02:35is related information.
02:37which is my second paragraph, it is also related information
02:40If you want that in single paragraph tag
02:43I will write in this way next line
02:46and this will be displayed in the next line
02:49when my webpage will create my web page
02:52You want to give many extra spaces or extra lines
02:55HTML will ignore all of them
02:57HTML will only recognize tags
02:59If there are things in paragraph tag
03:01then you will not add extra space or extra line
03:04You will present all of them
03:08That's why we need to use multiple things
03:10We need to use multiple tags
03:12We need to use multiple tags
03:14Let's save
03:16If I want to show bold
03:18I can use bold tags here
03:20and I can use bold tags
03:22Last line
03:24I have cut this whole line
03:26and paste in bold tags
03:28This is my normal paragraph
03:30This is my normal paragraph
03:32And in the second paragraph
03:34I have written the whole line
03:36Now if I refresh it
03:38This is my first paragraph
03:40This is my second paragraph
03:42And here the last line
03:44will be represented in my bold
03:45In one tag
03:46When we write another tag
03:48Then this phenomenon
03:50In programming language
03:52Nesting
03:53Nesting
03:54And these tags
03:55We will call nested tags
03:57Nesting means
03:58When we call nested tags
04:00When one thing comes in one thing
04:01Then one thing
04:02In one tag
04:03Like nested
04:04Or a nested
04:05Then there are small children
04:06In it
04:07In that way
04:08We can imagine that
04:09A big paragraph
04:10In it
04:11I have added another tag
04:12In it
04:13I have added another tag
04:14In it
04:15I have added a small tag
04:16In it
04:17I have added another tag
04:18In it
04:19So it will become my nesting
04:20Tax
04:21So we will be