HTML Basic Structure Second Part

HTML Basic Structure Second Part


इसमें आप को चार तरह के html basic के बारे में बताएँगे जो निम्नवत है
Basic html document
Html tags
Html document structure
<!DOCTYPE> declaration

1. Basic HTML document
यहाँ पर html के document की structure इस तरह से  है जो किसी भी webpages का निर्माण करती है |

<!DOCTYPE html>
<html>
<head>
<title>ये आपके html document का title होगा </title>
</head>
<body>
<h1> ये आपके html document की heading है | </h1>
<p> इसमें आप किसी भी html document में मुख्य content लिख सकते है |</p>
</body>
</html>

 HTML Output Result
तो देखा आपने किसी भी html document की basic structure | सभी html document में यही tag इस्तेमाल किये जाते है | आप किसी भी text editor या html editor का html कोडिंग लिखने के लिए प्रयोग कर सकते है | notepad++ html edit करने के लिए best software है |

2. HTML Tags
ये दूसरा वाला heading थी इसमें आप सभी basic tag के बारे में जान पाएंगे क्योकि अभी तक तो आपने जाना की किसी भी html document की basic सरंचना कैसी होती है |
हम आपको tags के बारे में बताने से पहले बता देना चाहते है की किसी भी tag को यदि आप लिखे तो आपको us को बंद जरूर करना होता है ,  नहीं तो html में error आ जायेगा |
उदा* के लिए हम निचे आपको बता रहे है |
Opening Tag - <html>
Closing Tag  - </html>

<!DOCTYPE> - ये वाला tag किसी भी html document का STARTING tag है जो document किस प्रकार का है और document के VERSION के बारे में बताता है |

<html>- <html> tag आपको पूरी तरह से html language के बारे में बताता है जो आपका document  सिर्फ और सिर्फ html में ही लिखी गयी है | इसमें आपको <header> से सम्बंधित सारे tags मिल जायेंगे | इस tag के अन्दर ही आपको html document के सारे part पुरे करने होते है |

<head> - ये <html> के अन्दर लिखा जाता है | इसमें आपको <meta> & <title> tag और <लिंक> आदि tags मिल जायेंगे |

<title> -  title tag आपको <head> tag के अन्दर लिखना होता है | इससे html document के शीर्षक का पता चलता है |

<body> - body tags आपको किसी html document की मुख्या भाग होता है जिसमे आपको <p> , <div> और headings आदि tags लिखना होता है | आपको text की formatting इसी body tag में कर सकते है |

<h1> - इस tag से आप heading बना सकते है | heading के बारे में विस्तार सेजानने के लिए हमारी ये post पढ़े |

3. HTML document structure
इसका structure भी सामान होता है आप ऊपर का html structure देख सकते है |

4. <!DOCTYPE> Declaration
ये आपके ब्राउज़र को आपके document की VERSION समझने के लिए प्रयोग किया जाता है| आपको बहुत सारी html document की अलग अलग declarationsमिल जाएगी जो document के अलग अलग संस्करण को बताती है |