HTML Fundamentals
Structure of an HTML Document
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
Essential HTML Tags
<h1> to <h6> - Headings <p> - Paragraphs <a> - Links <img> - Images <ul>, <ol>, <li> - Lists <div> - Container <span> - Inline container
HTML Attributes
class - For CSS styling id - Unique identifier href - For links src - For images and scripts alt - Alternative text for images
Forms
<form>
<input type="text" placeholder="Username">
<input type="password" placeholder="Password">
<button type="submit">Submit</button>
</form>