HTML, which stands for HyperText Markup Language, is the standard markup language for creating web pages. It is used to structure content on the web, providing a set of elements or tags that define the different parts of a webpage such as headings, paragraphs, links, images, forms, and more.
Here's a simple HTML code example:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My First Webpage</title>
</head>
<body>
<header>
<h1>Welcome to My Webpage</h1>
</header>
<section>
<h2>About Me</h2>
<p>This is a brief introduction about me and my interests.</p>
</section>
<section>
<h2>Contact Information</h2>
<p>Email: <a href="mailto:info@example.com">info@example.com</a></p>
</section>
<footer>
<p>© 2024 My Webpage. All rights reserved.</p>
</footer>
</body>
</html>
Let me briefly explain the structure of this HTML example:
- <!DOCTYPE html> : Declares the document type and version of HTML.
- <html lang="en"> : The root element of the HTML document, indicating the document is in English.
- <head>: Contains meta-information about the HTML document, such as the character set, viewport settings, and the title of the page.
- <body>: Contains the content of the HTML document, including text, images, links, etc.
- <header>, <nav>, <section>, and <footer>: Semantic HTML5 elements that structure different parts of the webpage.
- <h1>, <h2>, <p>, <ul>, <li>, <a>: Various HTML tags used for headings, paragraphs, lists, and links.
This example creates a simple webpage with a header, navigation menu, two sections, and a footer. The content inside each section is just placeholder text and can be replaced with actual content.
Year | HTML Version | Description |
---|---|---|
1991 | HTML 1.0 | Tim Berners-Lee creates the first version of HTML. |
1995 | HTML 2.0 | Introduced features like forms, text alignment, and inline images. |
1997 | HTML 3.2 | Brought support for tables, applets, text-flow around images, and text colors. |
1999 | HTML 4.01 | Included features like scripting (JavaScript), stylesheets (CSS), and improved support for forms. |
2008 | HTML 5.0 | Introduced a new parsing algorithm, new attributes, and a range of new elements. |
2014 | HTML 5.1 | Minor updates and clarifications to HTML 5.0. |
2016 | HTML 5.2 | Added new features and improvements to HTML 5.1. |
2017 | HTML 5.2 | Continued updates and improvements. |
2019 | HTML 5.3 | Draft proposals for potential future features. |
2020+ | Living Standard | Ongoing updates and improvements; no fixed version number. |
© Copyright Sahad Sarang 2024