HTML is the standard markup language for creating Web pages.
It describes the structure of a Web page using elements and tags.
<html></html>
<head></head>
- HTML stands for Hyper Text Markup Language
- It is the foundation of all websites
Elements are building blocks of HTML pages.
They are represented by tags like <p>, <a>, etc.
<p>This is a paragraph</p>
- Paragraphs
- Headings
Attributes provide additional information about elements.
They are always specified in the start tag.
<a href="https://example.com">Link</a>
- href
- alt
Forms are used to collect user input.
They contain input elements like text fields, checkboxes, etc.
<input type="text" />
- Text
- Radio
- Submit
Semantic elements clearly describe their meaning in a human- and machine-readable way.
Examples: <header>, <footer>, <article>, etc.
<article></article>
- Improves accessibility
- Helps SEO