■ File tags <HTML> ; <HEAD> ; <TITLE> ; <BODY> To understand the tag classification of this article [HTML Thorough Analysis], please see [Tags List]. ■ HTML basic structure: The following HTML Source Code is the basic structure of an HTML document: <TITLE>The title of the web page</TITLE> The content of the web page, many tags are used for this The entire document is between the tags <HTML> and </HTML>. The document is divided into two parts, <HEAD> to </HEAD> are called the beginning , and <BODY> to </BODY> are called the text . The beginning part is used to store important information, and only the text part will be displayed. <TITLE> indicates the title of the file. Among the above tags, only <BODY> has parameter settings. ■ Parameter settings for <BODY>: example: <BODY text ="#000000" link ="#0000FF" alink ="#FF0000" vlink ="#0000FF" background ="bg1.gif" bgcolor ="#FFFFFF" leftmargin =2 topmargin =2 bgproperties ="fixed" > text ="#000000" link ="#0000FF" alink ="#FF0000" vlink ="#0000FF" background ="bg1.gif" bgcolor ="#FFFFFF" leftmargin =2 topmargin =2 bgproperties ="fixed" Flags and parameters can be written in either upper or lower case letters. For other events such as onload, please refer to the introduction to Java Script.
Please also first understand the difference between containment tags and empty tags, please see [HTML Concepts]. <HTML>
<HEAD>
</HEAD>
<BODY>
</BODY>
</HTML>
Features explanation:
<HTML> is used to declare that this is an HTML file, allowing the browser to recognize and correctly process this HTML file.
Basically, both have applicable tags. For example, <TITLE> can only appear in the opening part.
So most of the markup will apply to this article section.
It will appear at the top of the browser and is the name when Bookmarked by others, so each page needs to have a different clear title.
Used to set text color. #000000 represents black, and you can also use a color name, that is, text=" black ". For the values and names of various colors, please refer to the section [Color Adjustment Principles].
Set the color of general text links.
Sets the text link color when first clicked.
Sets the color of the link after being clicked.
Set background image. Either GIF or JPEG is acceptable, and the path can be absolute or relative.
Setting the background color will have no effect when a background image has been set, except for transparent parts.
Set the left edge space of the entire document display screen, in pixels. (only for IE)
Set the upper edge space of the entire document display screen. (only for IE)
Fixed background image so it doesn't scroll when the scroll scrolls. (only for IE)