0% found this document useful (0 votes)
5 views2 pages

DAY 2 - Text tags

The document outlines various HTML tags used for structuring and formatting web content. It covers tags for headings, paragraphs, text formatting (bold, italic, superscript, subscript), line breaks, horizontal rules, emphasis, quotes, abbreviations, definitions, and text modifications (inserted and deleted). Each tag is described with its purpose and common usage in web development.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2 pages

DAY 2 - Text tags

The document outlines various HTML tags used for structuring and formatting web content. It covers tags for headings, paragraphs, text formatting (bold, italic, superscript, subscript), line breaks, horizontal rules, emphasis, quotes, abbreviations, definitions, and text modifications (inserted and deleted). Each tag is described with its purpose and common usage in web development.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

DAY 2 -

1. `<h1>` to `<h6>` (Headings):

- 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):

- The `<p>` tag is used to define paragraphs of text.

- It separates blocks of text, making it easier to structure and format content.

3. `<b>` (Bold):

- The `<b>` tag is used to apply bold formatting to text.

- It makes the enclosed text visually stand out.

4. `<i>` (Italic):

- The `<i>` tag is used to apply italic formatting to text.

- It is often used for emphasizing or styling text differently.

5. `<sup>` (Superscript) and `<sub>` (Subscript):

- `<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.

6. `<br>` (Line Break):

- The `<br>` tag is a self-closing tag used to insert a line break within text or between elements.

- It creates a new line without starting a new paragraph.

7. `<hr>` (Horizontal Rule):

- 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):

- The `<strong>` tag is used to indicate strong importance or emphasis on text.

- It typically renders text as bold, but its primary purpose is semantic, indicating importance rather
than visual styling.

9. `<em>` (Emphasis):

- The `<em>` tag is used to emphasize or give importance to text.

- It typically renders text as italic, but like `<strong>`, it focuses on semantic meaning.

10. `<q>` (Quote) and `<blockquote>` (Block Quote):

- `<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.

11. `<abbr>` (Abbreviation) and `<cite>` (Citation):

- `<abbr>` is used to mark up abbreviations or acronyms, providing the full expansion as an


attribute.

- `<cite>` is used to reference the title of a creative work (e.g., a book or movie) or a citation
source.

12. `<dfn>` (Definition):

- The `<dfn>` tag is used to define the term or phrase it encloses.

- It is helpful for marking up glossary or dictionary entries.

13. `<del>` (Delete) and `<ins>` (Insert):

- `<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.

You might also like