Paragraph Tag in HTML|| Code With Neha

Published: 18 December 2024
on channel: Code With Neha
375
36

In my previous video of html series I have discussed about anchor tag in html
Today we will be discussing about p tag in html so without any further delay let's get started

Starting with our basic html tags

Within the body tag Using p tag


The HTML p element defines a paragraph.

A paragraph always starts on a new line, and browsers automatically add some white space (a margin) before and after a paragraph.

Control s and refresh the browser for result

If we want to display paragraph in the centre
We need to insert align = center along with the starting p tag

Copy paste the same paragraph for different types of p align
Similarly to align paragraph in left or right using p align = left or p align = right


Now for a bigger paragraph we can see some extra spaces are there
In order to stretch the text of paragraph to set the width of lines equal
We will be using p align = justify
Now you can see the lines are covering the area of screen
You cannot be sure how HTML will be displayed.

Large or small screens, and resized windows will create different results.

With HTML, you cannot change the display by adding extra spaces or extra lines in your HTML code.

The browser will automatically remove any extra spaces and lines when the page is displayed:

That's it for today
Hope you all will get some help from this video If it's so then don't forget to subscribe my channel Code with Neha and press the Bell Icon to never miss an update
See you in the next video till then Stay Safe Stay Happy


#paragraphtaginhtml
#paragraphtag
#ptaginhtml
#howtouseparagraphtaginhtml
#pelementinhtml
#htmlparagraphtagtutorial
#ptagattribute
#html
#htmltutorial
#htmltutorials
#htmltutorialforbeginners
#html5
#htmlcss
#introductiontohtml
#htmltutorialforbeginners
#programming
#coding
#htmlbasicsforbeginners
#Htmltutorial
#Html basics
#whatishtml?
#whyhtmlismarkuplanguage
#Howtocreateawebpage
#Requimentstocreatewebpage
#html tags and attribute
#HTMLBasicCourseforbeginners
#WebDesigningwithHTML
#htmlforbeginners
#HTMLBasicCourse
#basichtmltagsandattributes
#htmltagsandattributes
#basicofhtml
#htmltagsfordesigningwebpage
#htmltags
#htmlprogram
#learnhtml
#htmlandcsstutorialforbeginners
#hypertextmarkuplanguage
#htmlfundamentals
#htmlbasics
#htmltutorial
#htmltags
#learnhtml
#htmltutorialforbeginners
#containertagsinHTML
#emptytagsinHTML
#containertagsinHTML
#html5Tags
#tagsinHTML
#howmanytagsinHTML
#containertagsexamples
#emptytagsexamples
#htmltutorial
#htmltutorialforbeginners
#htmlcss
#htmlcode