-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path6)Formating.html
More file actions
337 lines (198 loc) · 10.3 KB
/
Copy path6)Formating.html
File metadata and controls
337 lines (198 loc) · 10.3 KB
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML Formatting</title>
</head>
<body>
<h1 style="text-align: center; background-color: aquamarine;">Text-Formatting</h1>
<p>HTML offers tags and attributes to style your website's text, images, and more. This improves visual appeal, helps users navigate your content, and signals important information to users. Let's explore some of the common HTML formatting tags.</p>
<hr>
<h2>big tag</h2>
<!--the <big> tag is used to make text bigger -->
<p>This is a paragraph text</p>
<big>This is a big text</big>
<p>This is a paragrapg with <big>big</big> text</p>
<hr>
<h2>small tag</h2>
<!--the <small> tag is used to make text smaller -->
<p>This is a paragraph text</p>
<small>This is a small text</small>
<p>This is a paragraph with <small>small</small> text</p>
<hr>
<h2>strong tag</h2>
<!--the <strong> tag is used to make text bold
The HTML <strong> tag is used to define text with strong importance, seriousness, or urgency -->
<p>This is a paragraph text</p>
<strong>This is a strong text</strong>
<p>This is a paragraph with <strong>strong</strong> text</p>
<hr>
<h2>b tag</h2>
<!--the <b> tag is used to make text bold -->
<p>This is a paragraph text</p>
<b>This is a b text</b>
<p>This is a paragraph with <b>b</b> text</p>
<hr>
<h2> strong tag vs b tag</h2>
<p>The <strong>strong</strong> tag is used to define text with strong importance, seriousness, or urgency.</p>
<p>The <b> tag is used to draw attention to text without conveying any extra importance or emphasis.</p>
<hr>
<h2>em tag</h2>
<!--the <em> tag is used to make text italic
The HTML <em> tag is used to define emphasized text. The content inside is typically displayed in italics. -->
<p>This is a paragraph text</p>
<em>This is a em text</em>
<p>This is a paragraph with <em>em</em> text</p>
<hr>
<h2>i tag</h2>
<!--the <i> tag is used to make text italic -->
<p>This is a paragraph text</p>
<i>This is a i text</i>
<p>This is a paragraph with <i>i</i> text</p>
<hr>
<h2> em tag vs i tag</h2>
<p>The <em>em</em> tag in HTML is used to define emphasized text, typically displayed in italics.<em>It conveys semantic meaning, indicating that the emphasized text is important.</em></p>
<p>The <i>i</i> tag in HTML is used to define italicized text.<i>It is typically displayed in italics but does not convey any semantic meaning.</i></p>
<hr>
<h2>u tag</h2>
<!--the <u> tag is used to make text underlined -->
<p>This is a paragraph text</p>
<u>This is a u text</u>
<p>This is a paragraph with <u>u</u> text</p>
<hr>
<h2>The ins(Inserted Text) tag</h2>
<!--the <ins> tag is used to define inserted text
It highlights text that has been added, usually displayed as underlined by default. -->
<p>This is a paragraph text</p>
<ins>This is a ins text</ins>
<p>This is a paragraph with <ins>ins</ins> text</p>
<hr>
<h2>u tag vs ins tag</h2>
<p>While both the <u>u</u> and <ins>ins</ins> tags render text with a default underline in most browsers, they have completely different semantic meanings in</p>
<p>The <u>u</u> tag represents an Unarticulated Annotation (such as highlighting a spelling mistake or a proper name).</p>
<p>The <ins>ins</ins> tag represents Inserted text, indicating that the content has been added to the document.</p>
<hr>
<h2>del tag</h2>
<!--The HTML <del> tag represents text that has been deleted or removed from a document.
Browsers naturally render this content with a strikethrough line running directly through the text.-->
<p>This is a paragraph text</p>
<del>This is a del text</del>
<p>This is a paragraph with <del>del</del> text</p>
<hr>
<h2>s tag</h2>
<!--The HTML <s> tag is used to indicate text that is no longer accurate or relevant.
Browsers typically render this content with a strikethrough line running through the text.-->
<p>This is a paragraph text</p>
<s>This is a s text</s>
<p>This is a paragraph with <s>s</s> text</p>
<hr>
<h2>strike tag</h2>
<!--The HTML <strike> tag is used to define text with a strikethrough line.
It is deprecated in favor of the <s> tag.-->
<p>This is a paragraph text</p>
<strike>This is a strike text</strike>
<p>This is a paragraph with <strike>strike</strike> text</p>
<hr>
<h2>del tag vs s tag vs strike tag</h2>
<p>The <del>del</del> tag semantic meaning is Content deleted or removed from a document history.</p>
<p>The <s>s</s> tag semantic meaning is Text that is no longer accurate or relevant.</p>
<p>The <strike>strike</strike> tag semantic meaning is Purely visual strikethrough styling.</p>
<hr>
<h2>sub tag</h2>
<!--The <sub> HTML element defines subscript text,
which is displayed half a character below the normal baseline and typically in a smaller font size..-->
<p>With out using sub tag how the formulas or expressions looks like H2O , E=mc^2 , x1 + x2 = x3 etc......</p>
<p>With using sub tag how the formulas or expressions looks like :<br>
The chemical formula of water is H<sub>2</sub>O <br>
The Energy formula is E=<sub>mc</sub>^2 <br>
The Mathematical Addition formula is x<sub>1</sub> + x<sub>2</sub> = x<sub>3</sub>
</p>
<hr>
<h2>sup tag</h2>
<!--The <sup> HTML element defines superscript text,
which is displayed half a character above the normal baseline and typically in a smaller font size..-->
<p>With out using sup tag how the formulas or expressions looks like E=mc^2 , a^2+b^2 = c^2 etc......</p>
<p>With using sup tag how the formulas or expressions looks like :<br>
The Energy formula is E=mc<sup>2</sup> <br>
The Pythagorean theorem is a<sup>2</sup> + b<sup>2</sup> = c<sup>2</sup>
</p>
<hr>
<h2>mark tag</h2>
<!-- The <mark> tag in HTML is used to define the marked text. It is used to highlight the part of the text in a paragraph.-->
<p>This is a paragraph text</p>
<mark>This is a marked text</mark>
<p>This is a paragraph with <mark>marked</mark> text</p>
<p>Do not forget to buy <mark>milk</mark> today.Also bring <mark>Tea Packet</mark>,<mark>Boost</mark> from general store</p>
<hr>
<h2>abbr tag</h2>
<!-- The <abbr> tag in HTML is used to define an abbreviation or an acronym (like "HTML", "NASA", or "WHO").-->
<p>The <abbr title="Hyper Text Markup Language">HTML</abbr> is a markup language for creating webpages.</p>
<p>The <abbr title="Cascading Style Sheets">CSS</abbr> is used for styling webpages.</p>
<hr>
<h2>pre tag</h2>
<!-- The <pre> tag in HTML is used to define preformatted text. The text inside a <pre> element is displayed in a fixed-width font, and the text preserves both spaces and line breaks.-->
<p>
This is a paragraph text.
This is not a preformatted
text.
It doesn't preserve spaces and
line breaks exactly.
</p>
<pre>This is preformatted
text.
It preserves spaces and
line breaks exactly.
</pre>
<hr>
<h2>ruby tag</h2>
<!-- The <ruby> tag in HTML is used to define a ruby annotation,
which is a small piece of text that is displayed above or next to the base text.
Ruby annotations are commonly used in East Asian typography to provide pronunciation or other information about the base text.-->
<!-- <rt> tag: This tag is called ruby text It is used to describe the explanation of main text on top of the main text. -->
<!-- <rp> tag: It is optional which is used to specify the information which need to show when browsers are not supported ruby annotations.-->
<ruby> bonjour <rt>Hello</rt> </ruby> <br>
<ruby> HTML <rt>Hypertext Markup Language</rt> </ruby>
<hr>
<h1>marquee Tag</h1>
<!-- The <marquee> tag in HTML creates a scrolling text or image effect within a webpage.
It allows content to move horizontally or vertically across the screen, providing a simple way to add dynamic movement to elements.
Although this tag is deprecated in HTML5, it is still useful to understand its functionality for legacy projects.-->
<h2>Left Scrolling</h2>
<marquee direction="left">The Text Moves Left Direction.</marquee>
<h2>Right Scrolling</h2>
<marquee direction="right">The Text Moves Right Direction.</marquee>
<h2>Up Scrolling</h2>
<marquee direction="up">The Text Moves Up Direction.</marquee>
<h2>Down Scrolling</h2>
<marquee direction="down">The Text Moves Down Direction.</marquee>
<br><hr><br>
<h2>Scrolling - Speed control</h2>
<marquee direction="left" scrollamount="2">Scroll SLOWLY</marquee>
<marquee direction="left" scrollamount="10">Scroll FASTLY</marquee>
<marquee direction="right" scrollamount="2">Scroll SLOWLY</marquee>
<marquee direction="right" scrollamount="10">Scroll FASTLY</marquee>
<br><hr><br>
<h2>Behavior</h2>
<marquee behavior="scroll">Normal Scroll</marquee>
<marquee behavior="slide">Slide Once and Stop</marquee>
<marquee behavior="alternate">Bounce Back and Forth</marquee>
<br><hr><br>
<h2>Loop Count Scroll</h2>
<marquee loop="3">This Will Scroll 3 Times Only</marquee>
<br><hr><br>
<h2>Background Color</h2>
<marquee bgcolor="blue">Scroll with BackGround Color</marquee>
<br><hr><br>
<h2>Height and Width</h2>
<marquee width="500" height="50" direction="left">Different size(width="500")</marquee> <br><br>
<marquee width="300" height="50" direction="left">Different size(width="300")</marquee>
<br><hr><br>
<h2>Image Inside</h2>
<marquee direction="right" scrollamount="5"><img src="Images/india worldcup.jpg" width="100" height="75"></marquee>
<hr style="height: 3px; background: black;">
<footer align="center">
<p>© 2026   |   HTML Text-Formating   |   Akki Sai Kumar Reddy.</p>
</footer>
</body>
</html>