The <p> tags define a paragraph in HTML.
A paragraph always starts on a new line, and browsers automatically add some margin before and after a paragraph.
The content of paragraph written inside the <p>..</p> tag.
example :
<p>This is a simple paragraph contains
many lines and browsers automatically add some margin before and after this paragraph.
the browser ignores the spaces and a line break and display the content
like a simple paragraph......
</p>
A paragraph always starts on a new line, and browsers automatically add some margin before and after a paragraph.
The content of paragraph written inside the <p>..</p> tag.
example :
<p>This is a simple paragraph contains
many lines and browsers automatically add some margin before and after this paragraph.
the browser ignores the spaces and a line break and display the content
like a simple paragraph......
</p>
Other important tags which helps in writing a text content:-
- <pre> tag - It defines preformatted text. Inside this tags the text formatted same will be displayed on browser..
Example :-
<pre>
This is an example of pre tag.
It defines preformatted text.
Hello,
welcome to this blog !!!
thanks to visit this blog ....😊
</pre>
- <br> tag - defines a line break. Using <br> we can break a line without using new paragraph (<p> tag). <br> is empty HTML element that doesn't contain end tag....
Example:-
<p> This is an example of <br> br-tag </p>
============================================================
Codepen link is here:- 🔗https://codepen.io/arwazkhan189/pen/NWxaPW
Next we will learn HTML Text Formatting..........😊
Keep learning !!!
No comments:
Post a Comment