Table of Contents
HTML P element के बारे में|
हेलो दोस्तों इस पोस्ट में हम जानेगे की HTML document में paragraphs कैसे set करते है|
HTML document में, paragraph text के block को पहचानने के लिए <p> element का उपयोग किया जाता है। paragraph element के <p>opening tag और </p> closing tag दोनों होते है|
P element basic text formatting
अगर आप HTML में नये है और आप html सिख रहे हो तो best practice वही है की हम html के जो syntax है या element लिखने की जो formatting है उस formate से हम अपना html का code लिखे|
जैसे की HTML document में हम text का block, p element में लिखते है तो p element का एक simple सा formate है की हम उस block of text को p element के <p>opening tag और </p>closing tag के बीच में लिख सकते है|
<p>paragraph block of text is here</p>
code example
<!DOCTYPE html> <html lang="en"> <head> <title>For html document demo</title> </head> <body align=center> <p>this is paragraphs</p> <p>this is second paragraphs</p> </body> </html>
output
this is paragraphs
this is second paragraphs
HTML <br> tag
<br>tag उपयोग content new line में break करने के लिए होता है|
<br> एक empty element है जिसकी वजह छे उसका closing tag की जरुरत नहीं है|