Tags formatted text in HTML


In the previous articles, Taimienphi.vn introduced you to the Style attributes in HTML, in the article below, Taimienphi.vn will introduce you the text formatting tags in HTML.


HTML includes some tags that we can use to format the text displayed on web pages, such as tags. b to highlight text, i card to format italic text, tags mark to highlight paragraphs and tags code to identify meaningful texts, such as codes and tags ins to insert underlines in text and tags del to identify the deleted text.

Tags formatted text in HTML

Refer to the following article of Taimienphi.vn to find out the details of the text formatting tags in HTML.

Tags formatted text in HTML

Note: default card strong usually displayed on the browser is b, card left you shown is i. However, there are differences between these cards.

1. The b and strong tags are in HTML

The whole card b and card strong in HTML are used to display text in bold text. However the card strong to emphasize that content is important, and tags are b be used only to attract readers.

Example 1: The following is an example of a tag b in HTML:

The text is still written in html

The result will look like this:

The text is still in html 2

Example 2: The following example illustrates how to use the tag strong in HTML:

The text is broken in html 3

The result will look like this:

The text is broken in html 4

2. The em tag and the i tag in HTML

Similarly, the card you and card i both display text in italic format. However the card you Emphasize content that is important, and tags i Used to highlight text, for easier reading.

Example 1: The following example illustrates how to use the tag i in HTML:

The problem is still in html 5

The result will look like this:

The text is still in html 6

Example 2: The following example illustrates how to use the tag you in HTML:

The text is still in html 7

The result will look like this:

The text is still in html 8

3. Small element in HTML

Element small The HTML defines the smaller sized text.

For example: In the example below Taimienphi.vn will illustrate how to use the element small in HTML:

The text is still in html 9

The result will look like this:

The text is still in html 10

4. The mark element is in HTML

Element mark in HTML to identify the highlighted text, highlight.

For example: Refer to the example below to learn how to use the mark element in HTML:

The text is still in html 11

The result will look like this:

The text is still in html 12

5. The del element is in HTML

Element del The HTML is used to identify the deleted text.

For example: The following example illustrates how to use the element del in HTML:

The text is broken in html 13

The result will look like this:

The text is still in html 14

6. The “ins” element in HTML

Element “ins” in HTML is used to identify the inserted text part.

For example: The following example illustrates how to use the “ins” element in HTML:

The text is broken in html 15

The result will look like this:

The text is still in html 16

7. Sub element in HTML

Element sub In HTML the text format is written lower than the normal text.

For example: The following example illustrates how to use the sub element in HTML:

The text is still in html 17

The result will look like this:

The text is still in html 18

8. The sup element is in HTML

Element sup In HTML the written text format is higher than normal text.

For example: The following example illustrates how to use the sup element in HTML:

The text is still in html 19

The result will look like this:

The text is still in html 20

9. Format text tags in HTML

The following is a list of text formatting tags in HTML:

The text is still in html 21

Description Card

b Identify the highlighted text.
you Emphasis on content is important.
i Specify the text in italic format.
small Specifies smaller formatted text.
strong Identify important documents.
sub The written text format is lower than normal text.
sup The format of written text is higher than normal text.
ins Identifies the text to be inserted.
del Identify deleted text.
mark Identify the highlighted text.

The article above Taimienphi.vn has just introduced you to the format text tags in HTML. In the next article, Taimienphi.vn will introduce you to quote tags, quotes in HTML.

https://thuthuat.taimienphi.vn/the-dinh-dang-van-ban-trong-html-49889n.aspx
Also, if you have any questions or need answers like Style attributes in HTML What is it ?, readers can leave your comments in the comment section below the article.

.

Add a Comment

Your email address will not be published. Required fields are marked *