;
;
;
Please also first understand the difference between containment tags and empty tags, please read [HTML Concepts].
■ HTML basic structure:
The following HTML Source Code is the basic structure of an HTML file:
Title of the web page
HEAD>
The content of the web page, many tags are used here
Feature explanation:
The entire document is in the tags and between HTML>.
is used to declare that this is an HTML file, allowing the browser to recognize and correctly process this HTML file.
The file is divided into two parts, from to is called the beginning, and to is called the article.
Basically, both have applicable tags. For example,
can only appear at the beginning.
The beginning part is used to store important information, and only the article part will be displayed.
So most of the tags will be used in this article part.
indicates the title of the file.
The name will appear at the top of the browser and when Bookmarked by others, so a different and clear title for each page is required.
Among the above tags, only has parameter settings.
■ Parameter settings:
Example:
text="#000000"
Used to set the text color. #000000 represents black, you can also use the name of the color, that is, text="black" . For the values and names of various colors, please refer to the section [Color Adjustment Principles].
link="#0000FF"
Set the general text link color.
alink="#FF0000"
Set the text link color when clicked.
vlink="#0000FF"
Set the color of the link. (pressed).
background="bg1.gif"
Set background wallpaper. Either GIF or JPEG is acceptable, absolute or relative.
bgcolor="#FFFFFF"
Set the background color. It will have no effect when the background wallpaper has been set, unless the wallpaper has transparent parts.
leftmargin=2
Set the left edge space of the entire document display screen, in pixels. "Only applicable to IE"
topmargin=2
Set the upper edge space of the entire document display screen. 『Only applicable to IE』
bgproperties="fixed"
Fixed background wallpaper, the wallpaper will not scroll when the text is scrolled. "Only applicable to IE"
The letter size of tags and parameters can be adjusted.
The above is the content of HTML language analysis file tags. For more related articles, please pay attention to the PHP Chinese website (www.php.cn)!