HTML can define a number of elements for formatting output, such as bold and italic characters.
Here are a few examples where you can try it yourself:
HTML Text formatting instances
-
Text formatting
-
This example shows how to format text in an HTML file
-
Pre-formatted text
-
This example shows how to use the Pre tag to control blank lines and spaces.
-
"Computer Output" tab
-
This example shows the display of different computer output labels.
-
Address
-
This example shows how to write an address in an HTML file.
-
Abbreviations and acronyms
-
This example shows how to implement abbreviations or acronyms.
-
Text direction
-
This example shows how to change the direction of the text.
-
Block reference
-
This example shows how to implement a different length of the quote.
-
Delete Word effects and insert word effects
-
This example shows how to mark the deletion of text and insert text.
How to view HTML source code
Have you ever had this experience and when you see a great site, you would be interested to know how it was implemented by the developer?
Have you ever looked at some Web pages and wondered how it was made?
To reveal the technical secrets of a website is actually very simple. Click the browser's View menu and select View Source file. You will then see a popup window with the actual HTML code in the window.
Text formatting tags
label |
Description |
<b> |
Defines bold text. |
<big> |
Defines a large word. |
<em> |
Defines the emphasis on text. |
<i> |
defines italic words. |
<small> |
Define small words. |
<strong> |
Define the aggravating tone. |
<sub> |
Defines the subscript word. |
<sup> |
Defines the superscript word. |
<ins> |
Defines the insertion word. |
<del> |
Defines the deletion word. |
<s> |
Do not approve of use. Use <del> instead. |
<strike> |
Do not approve of use. Use <del> instead. |
<u> |
Do not approve of use. Use style instead. |
HTML text formatting