HTML5
HTML5
Introduction to HTML5
HTML5 is the latest evolution of HyperText Markup Language (HTML), the
standard language for creating and structuring web pages. It introduces
new elements, attributes, and behaviors that improve web development by
enhancing semantics, accessibility, and multimedia support. HTML5 plays a
crucial role in modern web development by making websites more
interactive, mobile-friendly, and search engine optimized.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=
1.0">
<meta name="description" content="A beginner-friendly guide to HT
ML5 and SEO best practices.">
<title>HTML5 Guide</title>
</head>
<body>
<header>
<h1>Welcome to HTML5</h1>
</header>
<main>
<section>
<p>This is an introduction to HTML5.</p>
HTML 1
</section>
</main>
<footer>
<p>© 2025 HTML5 Learning Guide</p>
</footer>
</body>
</html>
Foundational Tags:
<html> : Root element of an HTML document.
,
<section> <article> , <nav> : Organizing web content for better readability
and SEO.
Multimedia Elements:
<audio> : Embeds sound content.
Example:
<video controls>
<source src="video.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
HTML 2
Forms and Input Elements:
HTML5 improved forms by adding new input types and attributes.
Example:
<form>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<button type="submit">Submit</button>
</form>
4. Mobile-Friendly Design:
Ensure responsiveness with <meta name="viewport" content="width=device-width, initial-
scale=1.0"> .
HTML 3
Minimize use of large images.
Document Structure:
<html> : Root element.
Text Formatting:
<p> : Paragraph.
Media Elements:
<img> : Image.
<video> : Video.
<audio> : Audio.
HTML 4
<input> : Input field.
Tables:
<table> : Table container.
Semantic Elements:
<header> , <footer> : Header and footer sections.
Interactive Elements:
<details> & <summary> : Expandable content.
HTML 5