DAY 2 - Text tags
DAY 2 - Text tags
- These tags are used to define headings of different levels, with `<h1>` being the highest and most
important level, and `<h6>` the lowest.
- Headings provide structure and hierarchy to your content, with `<h1>` typically used for the main
title of a page or section, and `<h2>` to `<h6>` for subsections and subheadings.
2. `<p>` (Paragraph):
3. `<b>` (Bold):
4. `<i>` (Italic):
- `<sup>` is used for superscript text (raised above the baseline), commonly used for mathematical
notations like exponents.
- `<sub>` is used for subscript text (lowered below the baseline), often used in chemical formulas
and footnotes.
- The `<br>` tag is a self-closing tag used to insert a line break within text or between elements.
- The `<hr>` tag inserts a thematic horizontal line or rule to visually separate content sections.
- It is often used to break up content or add visual dividers.
8. `<strong>` (Strong):
- It typically renders text as bold, but its primary purpose is semantic, indicating importance rather
than visual styling.
9. `<em>` (Emphasis):
- It typically renders text as italic, but like `<strong>`, it focuses on semantic meaning.
- `<q>` is used for inline quotations, enclosing a short, inline quote within double quotation marks.
- `<blockquote>` is used for longer block quotes, often with indentation for readability.
- `<cite>` is used to reference the title of a creative work (e.g., a book or movie) or a citation
source.
- `<del>` is used to indicate deleted or removed text. It typically renders text with a strike-through.
- `<ins>` is used to indicate inserted or added text. It often renders text as underlined.