-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathText-Tags.html
58 lines (41 loc) · 2.2 KB
/
Text-Tags.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!-- Text Tags in Html -->
<!-- In Html, there are several tags used to format and structure the text on a web page
Here are some of the most common tags for working with text. -->
<!-- 1. **Paragraphs (`<p>`)**: The `<p>` tag is used to create paragraphs of text. It is one of
the most used tags to structure textual content on a web page. -->
<p>This is an example paragraph.</p>
<!-- 2. **Headers (`<h1>`, `<h2>`, ..., `<h6>`)**: Header tags are used to
give hierarchical structure to the text. `<h1>` is the main header, followed by `<h2>`, `<h3>`, and
so on for minor headings. -->
<h1>Main Header</h1>
<h2>Secondary Heading</h2>
<!-- 3. **Bold (`<strong>`) and italic (`<em>`) text**: The `<strong>` and `<em>` tags are
used to emphasize text, rendering text bold and italic, respectively. -->
<p>This is <strong>bold text</strong> and this is <em>italic text</em>.</p>
<!-- 4. **Quotes (`<blockquote>`) and Short Quotes (`<q>`)**: These tags are used for quoting
text. `<blockquote>` is used for longer quotes and `<q>` for shorter quotes. -->
<blockquote>
This is a long quote that can take up several lines.
</blockquote>
<p>As someone famous said: <q>This is a short quote.</q></p>
<!-- 5. **Ordered list (`<ol>`) and unordered list (`<ul>`) with list elements (`<li>`)**
These tags are used to create lists of items, numbered (ordered) or unnumbered
(disorderly). -->
<ul>
<li>Element 1</li>
<li>Element 2</li>
</ul>
<ol>
<li>Element 1</li>
<li>Element 2</li>
</ol>
<!-- 6. **Line break (`<br>`) and topic separator (`<hr>`)**: `<br>` is used to create a
line break within a paragraph, while `<hr>` is used to insert a horizontal line
that divides the content. -->
<p>This is text.<br>This is a line break.</p>
<p>Text before the topic separator.</p>
<hr>
<p>Text after the topic separator.</p>
<!-- These are some of the most common tags used to format and structure text in Html.
You can combine these tags to create web pages with a well-designed layout and text structure.
defined. -->