HTML Headings
हेलो दोस्तों इस पोस्ट में हम जानेगे की HTML में heading कैसे create करते है|
Heading Element अपनी Website में heading सेट करने के लिए उपयोग किया जाता है |
HTML heading tag <h1> to <h6> tag का उपयोग करके अपनी webisite में Heading set कर सकते है|
HTML heading <h1> tag के text font size दूसरे heading tag से ज्यादा ( largest ) होती है और <h6> tag के text font size दूसरे heading tag के compare में सबसे कम (small) होती है|
HTML के heading <h1> to <h6> tag अपने website ,section ,contant में heading के रूप में लिखा जाता है जिससे पता चलता है की हमारा contant किसके related लिखा गया है|
Table of Contents
HTML में छे प्रकार से HEADING को लिखा जाता है जैसे की
<h1>HTML heading h1 tag</h1> <h2>HTML heading h2 tag</h2> <h3>HTML heading h3 tag</h3> <h4>HTML heading h4 tag</h4> <h5>HTML heading h5 tag</h5> <h6>HTML heading h1 tag</h6>
HTML Heading Tags example
<!DOCTYPE html> <html lang="en"> <head> <title>For html document demo</title> </head> <body align=center> <h1>this is heading</h1> <h2>this is heading</h2> <h3>this is heading</h3> <h4>this is heading</h4> <h5>this is heading</h5> <h6>this is heading</h6> </body> </html>
output
this is heading
this is heading
this is heading
this is heading
this is heading
this is heading
HTML के सभी heading tag की font size अलग अलग होती है| heading tag की style “ margin , font – size , font–weight ” by default style है |
Heading tag की by default style हम inline , internal, external css style add करके change कर सकते है|
<h6 style="font-size:20px;margin:0px;font-weight:200;">Test</h6>
Heading tag important
Heading tag का उपयोग खास (important) topics को highlight करने की लिए होता है.
Heading tag webpages में structure के बारे में खास (important) information बताता है.
Search engine webpage के contant को indexing करने के लिए Heading tag का खास उपयोग होता है.