Pages

HTML HEADINGS - <h1> to </h6>


एचटीएमएल (HTML) छः प्रकार की  heading tags provide करता हैं।  जो उनकी प्राथमिकता के अनुसार परिभाषित किये जाते हैं। इन   छः प्रकार की  heading tags को कुछ इस तरह से लिखा जाता हैं। 

SYNTAX OF HEADING:-


<h1>This is the most important heading</h1>

<h2>This is the second most important heading</h2>

<h3>This is the third most important heading</h3>

<h4>This is the fourth most important heading</h4>

<h5>This is the fifth most important heading</h5>

<h6>This is the least important heading</h6>

Note:- कभी भी अपने कंटेंट के टेक्स्ट को बड़ा और बोल्ड दिखाने  के लिए heading tags का उपयोग न करे , क्यूंकि सर्च इंजन आपके वेबसाइट के पेज और कंटेंट को इंडेक्स करने के लिए heading का उपयोग करता हैं। 


heading-example
EXAMPLE HTML SOURCE CODE


ऊपर दिया कोड नीचे दिया हुआ वेब पेज ब्राउज़र में  दिखायेगा। 



heading-output

































































जैसा कि  आप ऊपर दिए हुए window में देख सकते हैं कि  कोड लिखने के दौरान हमने कोई भी  margin और  whitespace add नहीं किया लेकिन output में आप देखेंगे तो  heading के पहले  और बाद में  margin और  whitespace दिखाई दे रहा  हैं। 

Note:- ब्राउज़र खुद ब खुद (automatically) heading के पहले  और बाद में  margin और  whitespace add करता हैं।  

HTML HORIZONTAL RULES


एचटीएमएल (HTML) में  thematic break अथवा horizontal line को  define करने के लिए <hr/> tag का उपयोग किया जाता हैं। 

Example:-

hr-sourcecode














ऊपर दिया कोड नीचे दिया हुआ वेब पेज ब्राउज़र में  दिखायेगा। 












जैसा कि  आप ऊपर दिए हुए window में देख सकते हैं कि heading और paragraph के में  <hr/> tag का उपयोग करके काले रंग की horizontal line show हो रही  हैं। 

Chapter Summary


<h1> to <h6>   -  यह टैग  heading को परिभाषित करता हैं। 

<hr>  -  यह टैग  horizontal line को परिभाषित करता हैं। 

No comments:

Post a Comment