heading and paragraph tags | w4 learn in hindi

HTML Paragraph & Heading tags


paragraph tag क्या होता है। 



एक HTML Document के Main Content को Paragraphs के माध्यम से लिखा जाता है HTML में <p> Element द्वारा Paragraph को Define किया जाता है जो Content को Blocks में दिखाता है। मतलब Text का एक समूह बन जाता है
   

      <p>Here's how to define a                                      paragraph in HTML.</p> 


     <p>this is second paragraph</p>




Heading tags क्या  होते  है  



heading tags <h> का उपयोग हम किसी topics या किसी  paragraph की  heading लिखने के लिए करते  है 
heading के भी कुछ  types होते है जिनके लिए html, 6 different level की  heading provide  करती है , <h1> से <h6> तक  

      1. <h1> :–  यह main heading को define करने के लिए use किया जाता है। इसे आपको पुरे document में एक ही बार use करना चाहिए।




 <h1> this is the main heading</h1>



      2. <h2> :-  यह subheading tag होता है। इसके द्वारा आप subheadings define करते है। किसी बड़े section को आप इस tag द्वारा कई sections में divide कर सकते है। 



 <h2> this is sub heading</h2>


      3. <h3 > :-  यह minor heading tag है। इस heading के द्वारा आप subtopics को भी define कर सकते है।



 <h3> this is minor heading</h3>


      4. <h4 > :-  यह  fourth level का heading tag होता है
। इसका  use किसी बड़े  Topic को छोटे Sections में बांटने के लिए किया जाता है 



 <h4> this is the 4th level heading</h4>


      5. <h5 > :-  यह fifth level heading tag होता है, और इससे भी आप headings को define करते है। लेकिन इसे deep level पर content को define करने के लिए use किया जाता है।



 <h5> this is the 5th level heading</h5>

  
  6. <h6> :–  यह  sixth level heading tag है। यह heading normal text के बहुत करीब होती है। इससे आप कई topics को  list के रूप में present कर सकते है। 



 <h6> this is 6th level heading</h6>




Example of HTML heading and paragraph 

निचे HTML में headings ओर paragraph को use करने का simple उदाहरण निचे दिया जा रहा है। 
ऊपर दिए गए उदाहरण में सभी headings और paragraph को प्रयोग किया गया है। 

यह उदाहरण निचे दिया गया  output generate करता है।

Comments