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.

1.png


## Quotes, citations and definitions of terms

# Define the typewriter code. Define variables.
         
Define preformatted text.
    php.cn 

粗体用b表示。

斜体用i表示。

芙蓉姐姐这个词当中划线表示删除。

想唱就唱这个词下划线插入。

X2其中的2是下标

X2其中的2是上标

好好学习,天天向上。这句话缩进表示引用

 这是 预设(preformatted)文本. 在pre这个标签里的文本 保留 空格和 分行。 
call getOrders

用code显示计算机代码,code里显示的字符是等宽字符。

Code running result:
##Tag Description Define abbreviation. Define acronym.
Define the address. Define the text direction.
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:

7.png


Example

HTML for long quotes < blockquote>

    php.cn 

浏览器通常会对 blockquote 元素进行缩进处理。

五十年来,WWF 一直致力于保护自然界的未来。 WWF 工作于 100 个国家,并得到美国一百二十万会员及全球近五百万会员的支持。

Program running result:

4.png


##Example

HTML element defines an abbreviation or acronym.

    php.cn 

PRC 成立于 1949 年。

对缩写进行标记能够为浏览器、翻译系统以及搜索引擎提供有用的信息。

Program running results:

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):

    php.cn 

如果您的浏览器支持 bdo,则文本将从右向左进行书写 (rtl):

This line will be written from right to left

Program running result:

9.png




The usage of these tags is the same. If you are interested, you can try it


How to see the HTML source code

#The HTML web page you see in the browser is the browser’s interpretation of the HTML source code the resulting results.

To view the source code of this HTML, there are two methods. The first is to right-click the mouse and click the View Source command; the second is to select the Source command in the View menu of the browser.

Use View Source to get the source code of the web page. You can learn from what others have written well. However, when you have little knowledge of HTML, looking at other people's complex HTML source code will only make you dizzy. I suggest you wait a little longer and master some basics first.



Continuing Learning
||
php.cn

粗体用b表示。

斜体用i表示。

芙蓉姐姐这个词当中划线表示删除。

想唱就唱这个词下划线插入。

X2其中的2是下标

X2其中的2是上标

好好学习,天天向上。这句话缩进表示引用

 这是 预设(preformatted)文本. 在pre这个标签里的文本 保留 空格和 分行。 
call getOrders

用code显示计算机代码,code里显示的字符是等宽字符。

submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!