HTML - Header in Hindi




दोस्तों इस chapter में हम HTML Header tag के बारे में जानेंगे तो चलिए शुरू करते है, HTML header tag को Introductory material या navigation link container के रूप में use किया जाता है।

आमतौर पर एक header tag में एक या एक से अधिक शीर्षक Element logo या sign या लेखक की information होती है Html डॉक्यूमेंट में header tag बहुत ही important होता है. header tag के अंदर हम आपने page का टाइटल style लिंक सेट करते है html <header> टैग को <body> tag के अंदर डिफाइन किया जाता है और ये html5 का tag है।

Header Tag unclear होता है इसलिए इसका उपयोग विभिन्न प्रकार से किया जाता है. सबसे पहले आपको यह जानना होगा कि header tag कोई new section नहीं पेश करता है यह एक मौजूदा section का प्रमुख है और दूसरा आपको <head> tag से भ्रमित नहीं होना चाहिए क्योंकि header tag इससे अलग होता है।

Header tag को एक page heading के रूप में use किया जाता है, तो इसमें साइट का title या logo और मुख्य साइट navigation शामिल होता है. दोस्तों इसको कभी-कभी masthead के रूप में भी जाना जाता है।

आइये अब हम इसका Syntax देखतें है −

Syntax

<header>
//Header content
</header>

दोस्तों header tag के अंदर आप heading tag का उपयोग करके किसी भी website का नाम और paragraph tag का उपयोग करके website की शीर्ष पंक्ति को define करते है, एक उदाहरण के तौर पर Amazon के case में <header> tag को इस प्रकार से define किया जायेगा।

Example

<!DOCTYPE>
<html> 
<body> 
<header> 
<h2>www.amazon.in</h2>  
<p>This is the Worlds no.1 shopping website</p>  
</header> 
</body> 
</html>

Result

www.amazon.in

This is the Worlds no.1 shopping website