Use of Tags In HTML ?
दोस्तों इसके पहले हमने ये जाना था HTML क्या होता है इसका इस्तेमाल क्या होता। और कुछ Tags के बारे में जाना था उसका Practical भी किया था। आज हम और भी Tags के बारे में जानेंगे। अगर PART 1 नहीं देखा है तो देख लीजिये वरना आपको समझने में दिक्कत हो सकता है। इसका Link आपको निचे मिल जायेगा। 👇👇
<h1> .....<h6> Tags
Headings are defined with the <h1> to <h6> tags. <h1> defines the largest heading and <h6> defines the smallest heading. HTML automatically adds an extra an extra blank line before and after a heading.
<p> Tag
This tag <p> defines a paragraph. The <p> tag automatically creates some space before and after itself.
<br> Tag
The <br> tag is used when you want to end a line , But don't want to start a new paragraph the <br> tag forces a line break wherever you place it . The <br> tag is empty tag. it has no closing tag. It does not place extra space before and after the line as it was with <p> tag.
<hr> Tag
The <hr> tag creates a horizontal line in an HTML page. The <hr> tag can be used to separate content in a HTML page .
इतना TAG जानने के बाद अब हम इसका Practical करेंगे। इसके लिए आपको Notepad का इस्तेमाल करना है। जो Tag आपने सीखा उसका इस्तेमाल कर के आपको एक WEB PAGE बनाना जैसे इस IMAGE में आपको दिखाया जा रहा है।
ये CODING करने के बाद आपको इसको FILE में Save करना है उसके बाद Chrome में Open करना है। जैसे आपको निचे दिए गए IMAGE में दिखाया गया है।
इतना करने के बाद अब हम आगे के Tags के बारे में जानेंगे।
<b> Tag
This is a container tag. it display the text in boldface .
Example - I live in New Delhi , <b> The National Capital</b>
Output
I live in New Delhi , The National Capital
<i> Tag
it display the text in italics .
Example - I live in New Delhi , <i> The National Capital </i>
Output
I live in New Delhi, The National Capital
<u> Tag
This tag underline the text indide the tag.
Example - I live in New Delhi , <u> The National Capital </u>
Output
I live in New Delhi, The National Capital
और बाकि के Tags को हम PART 3 जानेंग
0 Comments