HTML:- Hyper Text Markup Language
Definition
HTML (HyperText Markup Language):
The foundational language used to create and structure web content.
Core Concepts
HyperText:
Enables linking between web pages, forming a connected web of information.
- Heading Tags:
Purpose: Define headings, from most important
| Tag |
Example Content |
| <h1>Heading 1</h1> |
Heading 1 |
| <h2>Heading 2</h2> |
Heading 2 |
| <h3>Heading 3</h3> |
Heading 3 |
| <h4>Heading 4</h4> |
Heading 4 |
| <h5>Heading 5</h5> |
Heading 5 |
| <h6>Heading 6</h6> |
Heading 6 |
-
Paragraph Tag:
Purpose: Wraps blocks of text into readable paragraphs.
Behavior: Adds spacing before and after the paragraph.
-
Horizontal Rule:
Purpose: Inserts a horizontal line to separate content.
Self-closing: No need for a closing tag.
-
Line Break Tag
Purpose: Forces a line break within text.
Use Case: Useful in poems, addresses, or formatting content.
-
Anchor Tag:
Purpose: Creates hyperlinks to other pages or resources.
Attributes:
href: URL to link to
target="_blank": Opens link in a new tab