Html common text formats
HTML defines some text format tags. For example, using these tags, you can change the font to bold or italic.
The following are some commonly usedtext format tags
tags | Description |
Define bold text. | |
Define large fonts. | |
Definition focuses on text. | |
Define italic characters. |
Define small characters. | |
Definition of emphasis. | |
Define subscripts. | |
Define superscript words. | |
Define the inserted word. |
"Computer Output" Tag
Define the delete word. |
## Tag | Description |
Define computer code. | |
Define the keyboard code. | |
Define computer code samples. |
The following chapters will specifically introduce computer code elements
##Example
The following example uses some of the above tags. You can compare the HTML display results to see.
## Quotes, citations and definitions of terms
Description | |
Define long quotes. | |
Define short quotes. | |
Define citation and citation. | |
Define a definition item. |
Example
HTML for short quotes
php.cn 浏览器通常会在 q 元素周围包围引号。
人类的目标是
构建人与自然和谐相处的世界。
Program running result:
Example
HTML for long quotes < blockquote>
php.cn 浏览器通常会对 blockquote 元素进行缩进处理。
五十年来,WWF 一直致力于保护自然界的未来。 WWF 工作于 100 个国家,并得到美国一百二十万会员及全球近五百万会员的支持。
Program running result:
##Example
HTML element defines an abbreviation or acronym.Program running results:php.cn PRC 成立于 1949 年。
对缩写进行标记能够为浏览器、翻译系统以及搜索引擎提供有用的信息。
PRC was established in 1949.
Tagging abbreviations can provide useful information to browsers, translation systems, and search engines.
Example
HTML element definition bi-directional override . If your browser supports bdo, the text will be written from right to left (rtl):Program running result:php.cn 如果您的浏览器支持 bdo,则文本将从右向左进行书写 (rtl):
This line will be written from right to left
How to see the HTML source code