Format text in HTML

Format elements in HTML help determine the style and importance of text.

Format elements in HTML

In the previous lesson, you learned about style attributes in HTML. HTML also uses special elements to define text with special meaning, such as and for bold and italic printing. This is a list of formatting elements for special text.

  1. bold
  2. important text
  3. italicized
  4. emphasize
  5. mark text
  6. minuscule
  7. deleted text
  8. inserted text
  9. text index below
  10. text index on

Elements and

The < b > element in HTML is used to define bold text, but there is no other importance.

 Đoạn text is bold. 

Element used to define important text.

 Important text. 

Elements and

Element used to define italic text, no other importance.

 Văn in italics. 

Element used to define text is emphasized .

 Text emphasized mạnh. 

Note: Although the browser is displayed like and like But these 2 pairs have different meanings. When and Text definition is bold and italicized, and indicates that the text is important.

Element

Element used to define smaller text.

Smaller dạng for text

Element

Element used to define text tick (marked or highlighted).

Document is dấu in HTML

Element in HTML

is the element used to define the text delete .

I like color green red

Element in HTML

Element used to define inserted text.

I like red.

Element in HTML

Element used to define the lower index .

Here

 is the lower index in HTML. 

Element in HTML

Element used to define the above index .

This is the trên index in HTML.

Format text in HTML Picture 1
Format text with some tags in HTML

Previous article: Style properties in HTML

The following article: Citation elements in HTML

4 ★ | 2 Vote

May be interested

  • Quote elements in HTMLPhoto of Quote elements in HTML
    quote elements in html. the element in html is used to define short excerpts. the browser usually inserts quotation marks before and after the element.
  • Caption tags in HTMLPhoto of Caption tags in HTML
    the comment tag is used to insert comments into the source code of html.
  • Colors in HTMLPhoto of Colors in HTML
    in html, colors are indicated by available color names or by values ​​of rgb, hex, hsl, rgba, hsla.
  • How to insert spaces in HTMLPhoto of How to insert spaces in HTML
    this tutorial explains how to insert spaces and line breaks in html. because no matter how many times you type a space, html will display a space so to insert more than one space, you will need to use the html tag.
  • Style HTML with CSSPhoto of Style HTML with CSS
    css is added to html elements in three ways: inline, internal and external.
  • Paths in HTMLPhoto of Paths in HTML
    you can find links (links) throughout the web. link allows clicking to switch to another page.