Introduction to HTML
HTML (Hyper Text Markup Language) is the fundamental language for creating web pages. It allows developers to structure text, images, links, and other content to be displayed in web browsers. HTML is essential for building the skeleton of any website.
The term Hyper Text refers to the ability to link various web pages together, while Markup Language indicates that it uses tags to mark elements within the text.
History of HTML
HTML was developed by Tim Berners-Lee in 1991. Initially, it was used to create simple web pages, but over time, it evolved to support multimedia, interactivity, and various advanced features.
Earlier, it was known as HTML 1.0, and it has been upgraded over the years to provide more functionalities and ease of use. HTML is continuously being updated by the W3C (World Wide Web Consortium) to make it more efficient and user-friendly.
HTML Versions
Year | Version |
---|---|
1991 | HTML 1.0 - Initial version developed by Tim Berners-Lee |
1995 | HTML 2.0 - First official version standardized by IETF |
1997 | HTML 3.2 - W3C recommendation with better support for styling |
1999 | HTML 4.01 - Improved accessibility and multimedia support |
2000 | XHTML 1.0 - HTML reformulated as XML |
2008 | HTML5 - Modern standard with support for audio, video, and interactive features |
Basic Structure of an HTML Document
The basic structure of an HTML document consists of several key elements:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
</body>
</html>
Explanation:
<!DOCTYPE html>
: Declares the document type and version.<html>
: Root element of the HTML document.<head>
: Contains meta-information, links, and scripts.<title>
: Sets the title seen on the browser tab.<body>
: Contains the visible content of the webpage.
HTML का परिचय
HTML (Hyper Text Markup Language) वेब पेज बनाने की मूल भाषा है। यह developers को text, images, links, और अन्य content को structure करने की अनुमति देती है जो web browsers में दिखाया जाता है। HTML किसी भी website का ढांचा बनाने के लिए आवश्यक है।
Hyper Text शब्द का अर्थ है विभिन्न वेब पेजों को एक साथ link करने की क्षमता, जबकि Markup Language का मतलब है कि यह text के भीतर elements को चिह्नित करने के लिए tags का उपयोग करती है।
HTML का इतिहास
HTML को Tim Berners-Lee ने 1991 में विकसित किया था। शुरुआत में, इसका उपयोग सरल वेब पेज बनाने के लिए किया जाता था, लेकिन समय के साथ, यह multimedia, interactivity, और विभिन्न उन्नत सुविधाओं का समर्थन करने के लिए विकसित हुआ।
पहले, इसे HTML 1.0 के रूप में जाना जाता था, और इसे वर्षों से अधिक functionalities और उपयोग में आसानी प्रदान करने के लिए upgrade किया गया है। HTML को लगातार W3C (World Wide Web Consortium) द्वारा अपडेट किया जा रहा है ताकि इसे अधिक कुशल और user-friendly बनाया जा सके।
HTML के संस्करण
वर्ष | संस्करण |
---|---|
1991 | HTML 1.0 - Tim Berners-Lee द्वारा विकसित प्रारंभिक संस्करण |
1995 | HTML 2.0 - IETF द्वारा मानकीकृत पहला आधिकारिक संस्करण |
1997 | HTML 3.2 - W3C की सिफारिश, बेहतर styling समर्थन के साथ |
1999 | HTML 4.01 - बेहतर accessibility और multimedia समर्थन |
2000 | XHTML 1.0 - HTML को XML के रूप में पुनर्गठित किया गया |
2008 | HTML5 - आधुनिक मानक, audio, video, और interactive सुविधाओं के समर्थन के साथ |
HTML दस्तावेज़ की मूल संरचना
एक HTML दस्तावेज़ की मूल संरचना में कई प्रमुख elements होते हैं:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>यह एक शीर्षक है</h1>
<p>यह एक पैराग्राफ है।</p>
</body>
</html>
व्याख्या:
<!DOCTYPE html>
: दस्तावेज़ के प्रकार और संस्करण को घोषित करता है।<html>
: HTML दस्तावेज़ का root element।<head>
: meta-information, links, और scripts को शामिल करता है।<title>
: browser tab पर दिखाई देने वाला शीर्षक सेट करता है।<body>
: वेबपेज की दृश्यमान सामग्री को शामिल करता है।