Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML text formatting


May 02, 2021 HTML


Table of contents


HTML text formatting

There are labels in HTML that format text that can be used directly without you having to write style adjustments.

<b>加粗文本</b><br><br>

<i>斜体文本</i><br><br>

<code>电脑自动输出</code><br><br>

这是 <sub> 下标</sub> 和 <sup> 上标</sup>


Try it out . . .

HTML formats labels

HTML formats the text of the output using the labels .lt;b>("bold") and "italic") for the output, such as: bold or italics

These HTML tags are called formatted labels (see the full label reference manual at the bottom).

HTML text formatting Usually the label is replaced with the bold label and the label is used, and the label is replaced by the label.
However, the meaning of these labels is different:
Define bold or italic text with .lt;i.gt.
The meaning of the text you want to render is important, so highlight it.
All major browsers today render fonts with a variety of effects. However, browsers may support better rendering in the future.

HTML text formatting

An example of this site

The text is formatted
This example shows how to format text in an HTML file

Preformed text
This example shows how to use the pre label to control empty lines and spaces.

Computer Output label
This example shows how different Computer Output labels look.

Address
This example shows how to write an address in an HTML file.

Abbreviations and abbreviations
This example shows how to implement abbreviations or abbreviations.

The direction of the text
This example shows how to change the direction of the text.

Block reference
This example shows how to implement references of different lengths.

The Delete Word effect and the Insert Word effect
This example shows how to mark deleted and inserted text.


HTML text formats labels

Label describe
<b> Define bold text
<em> Define text
<i> Define bevel
<small> Define small characters
<strong> Definition aggressive
<sub> Define the mark
<sup> Definition
<ins> Define insert word
<del> Define delete word


HTML "Computer Output" label

Label describe
<code> Define computer code
<kbd> Define keyboard code
<samp> Define computer code samples
<var> Define variables
<pre> Define preform text


HTML citations, references, and label definitions

Label describe
<abbr> Define abbreviation
<address> Define address
<bdo> Define text direction
<blockquote> Define long reference
<q> Define short quotes
<cite> Definition reference, certification
<dfn> Define a definition item.