Welcome to the HTML section of JD Academy! In this module, you'll embark on a journey to master the fundamental language of the web—HTML. As the backbone of every web page, HTML allows you to structure content and create a seamless browsing experience for users.
Early Development (1989-1991): HTML was invented by Sir Tim Berners-Lee, who also created the World Wide Web. The first version of HTML, HTML 1.0, was introduced in 1991.
HTML 2.0 (1995): The Internet Engineering Task Force (IETF) published the HTML 2.0 specification, introducing features like forms and tables.
HTML 3.2 (1997): This version added support for scripting languages, applets, text flow around images, and more.
HTML 4.01 (1999): A major release that introduced style sheets, scripting support, and improved accessibility features.
XHTML (2000): HTML reformulated as an application of XML, bringing stricter syntax rules.
HTML5 (2014): A landmark release that added new semantic elements, audio and video support, canvas for drawing, and improved forms.
Semantic Structure: HTML provides a semantic structure, making it easier for search engines and assistive technologies to understand content.
Compatibility: HTML is supported by all browsers, ensuring broad compatibility.
Evolution: The ongoing development of HTML, with the latest version being HTML5, keeps it relevant and adaptable.
Complexity: Over time, HTML has become more complex due to the addition of new features. This complexity can be a challenge for beginners.
Backward Compatibility: Maintaining backward compatibility with older versions can sometimes limit the adoption of new features.
HTML, the cornerstone of web development, stands for HyperText Markup Language.
It provides the structure for web content, allowing browsers to interpret and display information. Every web page starts with a solid foundation in HTML.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Page Title</title>
</head>
<body>
<!-- Your content goes here -->
<h1>Welcome to Your's JD Academy </h1>
</body>
</html>
HTML consists of various elements that define the structure of a webpage. Let's delve into some essential elements:
<h1>This is a Heading 1</h1>
<h2>This is a Heading 2</h2>
<!-- ... -->
<h6>This is a Heading 6</h6>
<p>This is a paragraph of text.</p>
<ul>
<li>Unordered List Item 1</li>
<li>Unordered List Item 2</li>
</ul>
<ol>
<li>Ordered List Item 1</li>
<li>Ordered List Item 2</li>
</ol>
Forms are crucial for user interaction. Let's explore form elements and their attributes:
<form action="/submit_form" method="post">
<!-- Form elements go here -->
</form>
<input type="text" placeholder="Enter your name">
<input type="password" placeholder="Enter your password">
<input type="submit" value="Submit">
Navigation is key for a user-friendly website. Learn how to create links and navigation menus:
<a href="page.html">Go to Page</a>
<nav>
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="about.html">About</a></li>
<!-- Add more menu items as needed -->
</ul>
</nav>
Enhance your website with multimedia elements:
<img src="image.jpg" alt="Description">
<audio controls>
<source src="audio.mp3" type="audio/mp3">
Your browser does not support the audio tag.
</audio>
<video width="320" height="240" controls>
<source src="video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
Semantic tags add meaning to your content, benefiting both developers and search engines:
<header>
<h1>Main Heading</h1>
<p>Subtitle or tagline</p>
</header>
<article>
<h2>Article Title</h2>
<p>Article content goes here.</p>
</article>
<footer>
<p>© 2023 JD Academy. All rights reserved.</p>
</footer>
HTML5 introduced exciting features for modern web development:
<button onclick="getLocation()">Get Location</button>
<script>
localStorage.setItem("username", "JohnDoe");
const username = localStorage.getItem("username");
</script>
“There are three responses to a piece of design - yes, no, and WOW! Wow is the one to aim for.”