index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HTML Attributes Demo</title>
</head>
<body>
<!-- Global Attributes: id, class, title -->
<section id="features" class="container card" title="Platform Features">
<h2>HTML Attributes in Action</h2>
<!-- Element-Specific Attributes: href, target, rel -->
<a href="https://example.com" target="_blank" rel="noopener noreferrer">Visit External Resource</a>
<!-- Boolean Attributes: required, disabled -->
<form>
<input type="text" name="username" placeholder="Enter username" required>
<button type="submit" disabled>Submit (Disabled)</button>
</form>
<!-- Custom Data Attribute: data-* -->
<div id="productCard" data-product-id="1092" data-category="electronics">
<p>Product: Ergonomic Mechanical Keyboard</p>
</div>
</section>
</body>
</html>