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

【HTML】Text effect_html/css_WEB-ITnose

Jun 24, 2016 am 11:45 AM

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='brush:php;toolbar:false;'><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.
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the purpose of the <datalist> element? What is the purpose of the <datalist> element? Mar 21, 2025 pm 12:33 PM

The article discusses the HTML &lt;datalist&gt; element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

How do I use HTML5 form validation attributes to validate user input? How do I use HTML5 form validation attributes to validate user input? Mar 17, 2025 pm 12:27 PM

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

What is the purpose of the <iframe> tag? What are the security considerations when using it? What is the purpose of the <iframe> tag? What are the security considerations when using it? Mar 20, 2025 pm 06:05 PM

The article discusses the &lt;iframe&gt; tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

What is the purpose of the <progress> element? What is the purpose of the <progress> element? Mar 21, 2025 pm 12:34 PM

The article discusses the HTML &lt;progress&gt; element, its purpose, styling, and differences from the &lt;meter&gt; element. The main focus is on using &lt;progress&gt; for task completion and &lt;meter&gt; for stati

What is the purpose of the <meter> element? What is the purpose of the <meter> element? Mar 21, 2025 pm 12:35 PM

The article discusses the HTML &lt;meter&gt; element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates &lt;meter&gt; from &lt;progress&gt; and ex

What are the best practices for cross-browser compatibility in HTML5? What are the best practices for cross-browser compatibility in HTML5? Mar 17, 2025 pm 12:20 PM

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

What is the viewport meta tag? Why is it important for responsive design? What is the viewport meta tag? Why is it important for responsive design? Mar 20, 2025 pm 05:56 PM

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

How do I use the HTML5 <time> element to represent dates and times semantically? How do I use the HTML5 <time> element to represent dates and times semantically? Mar 12, 2025 pm 04:05 PM

This article explains the HTML5 &lt;time&gt; element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

See all articles