Detailed explanation of examples of HTML text formatting

php中世界最好的语言
Release: 2018-01-20 11:21:20
Original
1994 people have browsed it

This time I will bring you a detailed explanation of HTML text formatting examples. What are the precautions for HTML text formatting? Here are actual cases, let’s take a look.

1. Text formatting: This example demonstrates how to format text in an HTML file

  
  
  
  
This text is bold  
  

This text is strong
This text is big
This text is emphasized
This text is italic
This text is small
This text contains subscript
This text contains superscript
Copy after login

2. Preformatted text: This example demonstrates how to use the pre tag to format empty lines and spaces for control.

  
  
  
  
  
这是   
预格式文本。   
它保留了      空格   
和换行。   

pre 标签很适合显示计算机代码:

  
for i = 1 to 10   
     print i   
next i   
Copy after login

3. "Computer Output" label: This example demonstrates the display effects of different "Computer Output" labels.

  
  
  
  
Computer code  

Keyboard input
Teletype text
Sample text
Computer variable

注释:这些标签常用于显示计算机/编程代码。

Copy after login

4. Address: This example demonstrates how to write an address in an HTML file.

  
  
  
  
Written by Donald Duck.
Visit us at:
Example.com
Box 564, Disneyland
USA
Copy after login

I believe you have mastered the methods after reading these cases. For more exciting information, please pay attention to the php Chinese website Other related articles!

Related reading:

What are the list tags in html?

HTML editing basics (a must-read for beginners)

htmlTitle, paragraph, line break, horizontal line, special How characters should be used

The above is the detailed content of Detailed explanation of examples of HTML text formatting. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!