HTML
HTML
Notes
� Components of Frontend:
✅ Features:
A tag is a keyword enclosed in angle brackets (< >) that defines an element.
Example:
<p>This is a paragraph.</p>
Example:
<h1>This is a heading</h1>
Example:
attribute="value"
Tag Meaning
<header> Page or section header
<nav> Navigation links
<main> Main content
<section> Section of content
<article> Independent article
<aside> Sidebar or extra content
<footer> Footer of page or section
Example:
<form action="/submit" method="POST">
<label for="name">Name:</label>
<input type="text" id="name" name="username" placeholder="Enter your name" required />
<button type="submit">Submit</button>
</form>
text
password
email
radio
checkbox
submit
button
file
number
date
🔹 SECTION 10: Doctype & HTML Boilerplate
✅ Basic HTML Template:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>