COMPLETE HTML GUIDE (BEGINNER TO ADVANCED)
Document Structure Tags
Tag Purpose
<!DOCTYPE html> Defines HTML5 document
<html> Root element
<head> Metadata container
<title> Page title
<body> Visible content
<meta> Metadata like charset, SEO
<link> External resources
<style> Internal CSS
<script> JavaScript
Text & Formatting Tags
Tag Purpose
<h1>-<h6> Headings
<p> Paragraph
<br> Line break
<hr> Divider
<b>/<strong> Bold
<i>/<em> Italic
<mark> Highlight
<small> Small text
<sub>/<sup> Subscript/Superscript
Tables
Tag Purpose
<table> Table container
<tr> Row
<td> Data cell
<th> Header cell
<thead> Header section
<tbody> Body section
<tfoot> Footer section
Forms
Tag Purpose
<form> Form container
<input> Input field
<textarea> Multi-line input
<label> Label
<select> Dropdown
<option> Option
<button> Button
Common Attributes
Attribute Purpose
id Unique identifier
class CSS class
style Inline CSS
href Link URL
src Image source
alt Image description
name Form key
value Form value
placeholder Hint text
required Mandatory field