HTML language analysis: typesetting markup

黄舟
Release: 2016-12-15 13:12:16
Original
1364 people have browsed it

;

;
;


;
;
 ; 
; ; : ▲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.
Originally

is 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 code
Chris's First Homepage

What's new

My profile

Result Chris's First Homepage
What's new
My profile

: ▲Top
 is 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 the
 tag 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.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