google.com, pub-8786015629279405, DIRECT, f08c47fec0942fa0 HTML Tag - Paragraph in Hindi

HTML Tag - Paragraph in Hindi

0

HTML Paragraph Tag in Hindi


html में paragraph define करने के लिए p tag का use किया जाता है .

For Example:-


<html>
<head>
<title>
paragraph tag Example
</title>
</head>
<body>
first paragraph<p>
second paragraph</p>
</body>
</html>

<p> tag को close करना जरुरी नहीं है,क्योकि ये unpaired tag है , अगर आप इन्हें close नहीं भी करते तो भी आपका output same आयगा , उसमे कुछ भी changes नहीं होंगे.

जब आप इस code को अपने browser पर run करेंगे तब आप देखेंगे की  first line में first paragraph करके आता है , and second वाले line में means paragraph छोड़कर वो second line में second paragraph आता है .



Fig-1
  • browser automatically paragraph के बाद और पहले white space add कर लेता है.
  • output की window , छोटे और बड़े होने पर output की result different होती है .
  • आप html में कुछ extra white space add करके output change नहीं कर सकते.
  • browser two sentence के बीच white space को खुद remove कर देता है , इसे आपको manually करने की जरुरत नहीं पढ़ती.

HTML Tag - White Space in Paragraph

<html>
<head>
<title>
whitespace example
</title>
</head>
<body>
<p>
This is a Paragraph
there is so many lines
but browsers ignore it.
</p>
<p>
This is    a Paragraph
there is   so many lines
but browsers ignore it.
</p>
</body>
</html>


Fig-2

इस example में आप 15th line देख सकते है , जिसमे ….is word के बाद थोडा space दिया गया है , लेकिन जब आप इसे अपने browser पर run करोगे तो इसे browser ignore कर देता है.means browser इन white space को ignore कर देता है.

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

Thank you for your interest 😊

We will back shortly after reviewing...

Thank you for your interest 😊

We will back shortly after reviewing...

Post a Comment (0)

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !
To Top