HTML notes
HTML notes
1. Introduction to HTML:
• HTML (HyperText Markup Language) is the fundamental building block for web
development.
• HTML is not a programming language but a markup language that defines the structure
of web pages using various elements or tags.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
</body>
</html>
• Headings: Tags like <h1>, <h2>, ..., <h6> represent headings. <h1> is the largest and
most important heading, while <h6> is the smallest.
• Lists:
o Ordered List (<ol>) also uses <li> but numbers the items.
4. Forms:
</form>
5. Semantic HTML:
• Semantic elements are used to convey the meaning of content to both the browser and
the developer. Examples include: