HTML Analysis 3: file tag

Source: Internet
Author: User
HTML language analysis-3 ▲ Top

3. File tag

<HTML >;< HEAD >;< TITLE >;< BODY>

For details about the tag classification of [HTML Analysis] in this article, refer to [tag overview ].
Please refer to [HTML concept] For details about the block tag and empty tag ].

■ Basic HTML architecture:
The following HTML Source Code is the basic structure of an HTML file:

 

<HTML>
<HEAD>
<TITLE> webpage TITLE </TITLE>
</HEAD>
<BODY>
The content of the web page, many tags apply to this
</BODY>
</HTML>

Feature description:

  • The entire file is between the tag <HTML> and </HTML>.
    <HTML> declares that this is an HTML file, allowing the browser to recognize and correctly process the HTML file.

     

  • The file is divided into two parts, starting with <HEAD> to </HEAD> and <BODY> to </BODY>.
    Basically, the two have their own applicable tags. For example, <TITLE> can only appear at the beginning.

     

  • The start part is used to store load information, and only the part in this article will be displayed.
    Therefore, most of the tags will be used in this article.

     

  • <TITLE> it indicates the file TITLE.
    It will appear at the top of the browser and the name when it is someone else's Bookmark, so it is necessary to have different and clear titles on each page.

Only <BODY> parameters are set in the preceding tag.

■ <BODY> parameter settings:
Example:

<BODY text = "#000000" link = "# 0000FF" alink = "# FF0000" vlink = "# 0000FF" background = "bg1.gif" bgcolor = "# FFFFFF" leftmargin = 2 topmargin = 2 bgproperties = "fixed">

  • Text = "#000000"
    Set the text color. #000000 indicates the black color. You can also use the color name, that is, text = "black ". For the values and names of various colors, see [Color Principle.

     

  • Link = "# 0000FF"
    Set the general text link color.

     

  • Alink = "# FF0000"
    Set the text link color when you press it.

     

  • Vlink = "# 0000FF"
    Set the link color. (Pressed ).

     

  • Background = "bg1.gif"
    Set the background wallpaper. GIF or JPEG can both be an absolute or relative path.

     

  • Bgcolor = "# FFFFFF"
    Set the background color. Background wallpaper is ineffective unless it has a transparent part.

     

  • Leftmargin = 2
    Sets the left edge space of the entire file display screen, in pixels. "Only applies to IE 』

     

  • Topmargin = 2
    Set the upper edge space of the entire file display screen. "Only applies to IE 』

     

  • Bgproperties = "fixed"
    Fixed background wallpaper. The wallpaper will not be rolled around when the text is rolled. "Only applies to IE 』

The marker and parameter can contain letters. Other events such as onload will be described in [Java Script profiling.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.