;
;
;
;;; ■: ▲Top
Like many computer languages, HTML files also provide annotation functions. The browser will ignore the text in this tag (it can be many lines) without displaying it. The general purpose of use:
Add descriptions to different parts of the text to facilitate future modifications.
This is especially important for more complex or non-private web pages. It not only reminds yourself, but also reminds your colleagues what this part does and what that part does.
Example:
is used as a copyright statement.
If you don’t want others to use or copy your webpage, you can add a warning word.
Example:
■: ▲Top
is called a paragraph mark . Function: Leave a blank line between words, paintings, tables, etc.
Originallyis a closing tag, marked at the beginning and end of a paragraph, but starting from HTML 2.0, there is no need for
to end.Common parameters: For example:
align="center"
Optional values: right, left, center.
Default value: align="left"
Example: Source codeHere is the text for my paragraph. It does't matter how long it is,
how many space are between the words or when I decide to hit the return key.
It will create a new paragraph only when I begin the tag with another one.Here's the next paragraph.
Showing resultsHere is the text for my paragraph. It does't matter how long it is, how many space are between the words or when I decide to hit the return key. It will create a new paragraph only when I begin the tag with another one.
Here's the next paragraph.
■
: ▲Top
< BR> is called a newline mark. Function: Make words, pictures, tables, etc. appear on the next line.
Since the browser automatically ignores blank spaces and line breaks in the source code,
becomes one of the most commonly used tags. Because no matter how beautiful the article you have compiled in the source code, if you do not add line breaks or paragraph marks appropriately, the browser will only display it as one large paragraph.
Error example: (The post office will not accept an address that exceeds one line) Source code 566 E Boston Post RD
Mamaroneck NY 10543-9982
United States of America
Result 566 E Boston Post RD Mamaroneck NY 10543-9982 United States of America
Correct example: Original code 566 E Boston Post RD
Mamaroneck NY 10543-9982
United States of America
Result 566 E Boston Post RD
Mamaroneck NY 10543-9982
United States of America
■
: ▲Top
is called the horizontal line. Function: Insert a horizontal line.
Parameter modification:
Take:
as an example.
align="LEFT"
Set the line placement position, you can choose from three settings: left; right; center.
size="2"
Set the line thickness in pixels, the default is 2.
width="70%"
Set the line length, which can be an absolute value (in pixels) or a relative value. The default is 100%.
color="#0000FF" 『Only applicable to IE』
Set the line color, the default is black. #0000FF represents blue, and you can also use the name of the color, that is, text="blue" .
noshade
Set the line to be displayed as a plane. If deleted, it will have a shadow or a three-dimensional shape. This is the default value.
Example: Source code
Show results
----------------------------- -------------------------------------------------- ------------------
---------------------------------- ----------------------------------------
---- -------------------------------------------------- --------------------------
---------------------- -------------------------------------------------- -------
■: ▲Top is called the center mark. Function: Display words, pictures, tables, etc. in the middle.
This tag was originally defined by Netscape, and later other browsers supported it. However, you will find that many tags already have the parameter align="CENTER".seems redundant. In fact, it is still one of the commonly used tags. , it is simple and easy to use, and is often used in text. For tags with align="CENTER" parameters, you must also take the trouble to add a center tag, because many browsers do not support the
tag. align="CENTER" parameter.
Example: Source codeChris's First Homepage What's new My profile
Result Chris's First Homepage
What's new
My profile
■: ▲Topis called the default format tag. Function: Display the files according to the arrangement of the source code.
This tag allows you to preserve the whitespace and returns you entered in the source code. Take a closer look at the following examples to appreciate the power of this markup. You can only achieve this effect by using this tag instead of using a bunch of table tags.
It is best if you can use thetag to produce an effect, or produce more than one line of blank space!The above is the content of HTML language analysis and layout markup. For more related articles, please pay attention to the PHP Chinese website (www.php.cn)!
Related labels:source:php.cnStatement of this WebsiteThe 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.cnLatest Articles by Author
2023-03-15 16:54:01 2023-03-15 12:26:02 2023-03-14 18:58:01 2023-03-14 11:30:01 1970-01-01 08:00:00 2023-03-16 15:20:01 1970-01-01 08:00:00 1970-01-01 08:00:00 1970-01-01 08:00:00 1970-01-01 08:00:00Latest IssuesRelated TopicsMore>
- Why does localstorage expire so quickly?
- What are the cloud operating systems?
- The difference between console cable and network cable
- How do I set up WeChat to require my consent when people add me to a group?
- How to connect html files and css files
- Computer freeze screen stuck
- How to enable JavaScript
- What are the basic data types in php
Popular RecommendationsPopular TutorialsMore>
JAVA Beginner's Video Tutorial2487490 Latest DownloadsMore>