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