Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
Like
Bookmark
Share
Add to Playlist
Report
04. Paragraph Element
garbage
Follow
3 months ago
Category
📚
Learning
Transcript
Display full video transcript
00:00
Now, first of all, we are going to talk about paragraph elements.
00:03
For creating paragraph elements, we use p-tag, which represents a paragraph.
00:09
Now, when we talk about paragraph, paragraph doesn't mean only text.
00:13
Paragraph means that all the contents that we want to display together.
00:18
So, it's not necessary to display only text in it.
00:20
It can be possible that our bold text will come.
00:23
It can be possible that we want to display both images and text together.
00:27
So, whatever content we want to display together, we use our paragraph-tag.
00:33
Now, paragraph-tag is another special thing that it creates space.
00:37
Which way?
00:38
One time, we go into our HTML file.
00:41
I wrote paragraph-tags in my file and I'm going to write this is my first paragraph.
00:48
After writing this is my first paragraph, I gave a lot of space.
00:52
And next, I'm going to write this is my second paragraph.
00:56
Now, I'm going to give one line and display it.
01:00
Let's save it.
01:01
And as I have saved it, what happened automatically?
01:04
This is all information is on my same line.
01:07
Why is this happening?
01:08
If you are saving in your VS Code,
01:10
and you are going to take it on the next line,
01:12
and you are not going to save it on the same line,
01:14
then the output is going to be the same.
01:16
So, in the paragraph, if I write two paragraphs,
01:19
then all of the information is on the same line.
01:22
Let's say, I have given a lot of space here,
01:25
and now I have saved it.
01:26
Then it is automatically that way.
01:28
Here, the conclusion is that HTML,
01:30
which you give more spaces,
01:32
or you want to display things on the next line,
01:35
that HTML does not know all of them.
01:38
If you have written things in a single paragraph,
01:41
then all of the things will be displayed in one line.
01:44
That means, it will be displayed in a single line.
01:46
I mean, if I want to copy and paste it,
01:49
then I will save it.
01:51
And now, if I refresh it,
01:53
then all of the things will be displayed in one line.
01:55
But if I need a little space in these things,
01:57
then I have to create a new paragraph tag.
01:59
Like, if I remove the information from here,
02:01
and then I will put a paragraph tag.
02:03
Then I can display all of this information.
02:05
And now, I can display all of these things.
02:07
And now, the things are different.
02:09
So, usually, if this is a set of information,
02:11
and this is my second set of information,
02:12
and if I use a paragraph tag as well.
02:14
Then I have to use two paragraph tags
02:16
for all of these things.
02:17
So, usually, if I use a set of information,
02:19
and if this is my second set of information,
02:21
and if I display the two both paragraphs,
02:23
then I will use two paragraph tags.
02:25
Therefore, our paragraph tags
02:28
are connected or related information
02:30
or content
02:32
or our content.
02:34
The first paragraph
02:35
is related information.
02:37
which is my second paragraph, it is also related information
02:40
If you want that in single paragraph tag
02:43
I will write in this way next line
02:46
and this will be displayed in the next line
02:49
when my webpage will create my web page
02:52
You want to give many extra spaces or extra lines
02:55
HTML will ignore all of them
02:57
HTML will only recognize tags
02:59
If there are things in paragraph tag
03:01
then you will not add extra space or extra line
03:04
You will present all of them
03:08
That's why we need to use multiple things
03:10
We need to use multiple tags
03:12
We need to use multiple tags
03:14
Let's save
03:16
If I want to show bold
03:18
I can use bold tags here
03:20
and I can use bold tags
03:22
Last line
03:24
I have cut this whole line
03:26
and paste in bold tags
03:28
This is my normal paragraph
03:30
This is my normal paragraph
03:32
And in the second paragraph
03:34
I have written the whole line
03:36
Now if I refresh it
03:38
This is my first paragraph
03:40
This is my second paragraph
03:42
And here the last line
03:44
will be represented in my bold
03:45
In one tag
03:46
When we write another tag
03:48
Then this phenomenon
03:50
In programming language
03:52
Nesting
03:53
Nesting
03:54
And these tags
03:55
We will call nested tags
03:57
Nesting means
03:58
When we call nested tags
04:00
When one thing comes in one thing
04:01
Then one thing
04:02
In one tag
04:03
Like nested
04:04
Or a nested
04:05
Then there are small children
04:06
In it
04:07
In that way
04:08
We can imagine that
04:09
A big paragraph
04:10
In it
04:11
I have added another tag
04:12
In it
04:13
I have added another tag
04:14
In it
04:15
I have added a small tag
04:16
In it
04:17
I have added another tag
04:18
In it
04:19
So it will become my nesting
04:20
Tax
04:21
So we will be
Recommended
4:05
|
Up next
parte 4
Canale Europa
9 months ago
1:02
1000032304
M Imran
8 months ago
28:04
借王〈シャッキング〉II-運命の報酬-04
kazubonka
8 months ago
23:30
셀럽 04
anima drama
2 years ago
17:20
大话之少年游04
コーヒー
3 days ago
44:26
静かなるドン第04話「三代目の身代金」
萬屋商会
7 months ago
1:03:51
请和我的老公结婚04
小阮
2 months ago
19:10
04
.
2 years ago
12:11
向北的遗憾04
LoserG_01
8 months ago
47:00
Acorralada Capítulo 4
Action Novelas
1 year ago
17:45
【想摆脱公主教育的我】04上
小阮
7 months ago
18:17
【想摆脱公主教育的我】04下
小阮
7 months ago
7:47
03. Hello World
garbage
3 months ago
4:39
05. Heading Elements
garbage
3 months ago
4:43
01. Introduction to HTML
garbage
3 months ago
4:29
02. HTML Elements & Tags
garbage
3 months ago
6:02
01. Prerequisites
garbage
3 months ago
11:10
02. What is the Internet
garbage
3 months ago
9:25
01. Welcome to Delta!
garbage
3 months ago
1:52
04. What will we learn
garbage
3 months ago
9:37
03. What is Web Development
garbage
3 months ago
0:51
Former Aide Claims She Was Asked to Make a ‘Hit List’ For Trump
Veuer
2 years ago
1:08
Musk’s X Is ‘the Platform With the Largest Ratio of Misinformation or Disinformation’ Amongst All Social Media Platforms
Veuer
2 years ago
4:50
59 companies that are changing the world: From Tesla to Chobani
Fortune
2 years ago
0:46
3 Things to Know About Coco Gauff's Parents
People
2 years ago