Home > Web Front-end > HTML Tutorial > 【HTML】Text effect_html/css_WEB-ITnose

【HTML】Text effect_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:45:13
Original
1149 people have browsed it

In order to display text information on the web page, when designing HTML, just enter the text where you need to add text in , which is the same as what we do in Word and Notepad Add in the same way. At the same time, in order to increase the readability of the code, you can also use to add necessary comments. These comment information will not be displayed on the page.

1. Text modification

After adding text to the html file, in order to make the web page more beautiful, you need to add some effects to the text. Some of the tags that need to be used are as follows:

标记                                  

说明                                          

加粗

斜体

下划线

删除线

设置地址文字

上标

下标

Tags                                                                                                 >

Bold
<html>	<head>		<title>文字修饰</title>	</head>	<body>		<p>语文:<br>		 静夜思<br>		<b>床前明月光</b><br>		<!--粗体-->		<i>疑似地上霜</i><br>		<!--斜体-->		<u>举头望明月</u><br>		<!--下划线-->		<del>低头思故乡</del><p>	<!--删除线-->				<p>数学:<br>		  x<sup>2</sup>-6x+5=0<br>	<!--上标-->		解:x<sub>1</sub>=0;x<sub>2</sub>=1		<!--下标-->		</p>			</body></html>
Copy after login

< ;i>

italic

Underline

标记

说明

定义段落,但是不能进行段落格式的设置


回车

</p> </td>     <td> <p>预格式化,设置后,键盘上的回车键就可生成一个段落</p> </td>    </tr>    <tr>     <td> <p><blockquote></p> </td>     <td> <p>设置段落缩进,可以增加段落的层次效果</p> </td>    </tr>    <tr>     <td> <p><hr></p> </td>     <td> <p>插入并设置水平线</p> </td>    </tr>    </table> </td> <td> </p>Strikethrough<p> </td > </tr> <tr> <td> </p><address><p> </td> <td> </p>Set address text<p class="sycode"> </td> </tr> <tr> <td > <table>     <tr>     <td> <p>符号                              </p> </td>     <td> <p>对应代码                                  </p> </td>    </tr>    <tr>     <td> <p>空格</p> </td>     <td> <p> </p> </td>    </tr>    <tr>     <td> <p>&</p> </td>     <td> <p>&amp;</p> </td>    </tr>    <tr>     <td> <p>&copy;</p> </td>     <td> <p>&copy;    </p> </td>    </tr>    <tr>     <td> <p>?</p> </td>     <td> <p>&trade;</p> </td>    </tr>    <tr>     <td> <p>&reg;</p> </td>     <td> <p>&reg;</p> </td>    </tr>    <tr>     <td> <p>&yen;</p> </td>     <td> <p>&yen;</p> </td>    </tr>    <tr>     <td> <p>&sect;</p> </td>     <td> <p>&sect;</p> </td>    </tr>    </table><sup></p> </td> <td> <p>Superscript </p> </td> </tr> <tr> <td> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="sycode" name="code"><html>	<head>		<title>特殊符号的使用</title>	</head>	<body>		<p>  廊坊师范学院,建院于1946年,升本建院以来,学院已为社会输送了4万余名各级各类专业人才。<p>		<p>  版权所有&copy;:廊坊师范学院</p>	<!--特殊符号-->	</body></html>
Copy after login

Subscript

Instance:

Effect:

2. Paragraph Whether it is an ordinary document or a web page, the part about text information will involve the relevant content of the paragraph, which makes the text expression clearer. The special paragraph tag in html is

. In addition, there are many tags that can set its paragraph format

mark Description

Define paragraph, But the paragraph format cannot be set

Enter
 
Pre-formatted, after setting, the Enter key on the keyboard can generate a Paragraph
Set paragraph indentation to increase the hierarchical effect of the paragraph

Insert and set horizontal lines
3. Special symbols When using special symbols, you need to convert them into corresponding codes and insert these codes into the html file so that what is displayed on the web page is Special symbols we need. The commonly used special symbols correspond to codes as follows:
Symbols                                                
Space  
& &
© © ;  
?
® ®
¥ ¥
§ § td>
Example: Effect: Summary: In In HTML documents, when a certain part of text needs to be explained, it can also be done by adding the text annotation tag . There are many settings for text effects. As long as you master some commonly used tags and use them reasonably, you can make the web page more pleasing to the eye.
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