HTML thorough parsing (3) file tags

Source: Internet
Author: User
Tags contains end i18n set background version

File tags

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

To understand this "HTML thorough analysis" of the mark classification, please see " Mark List ".
Please also understand the distinction between containment and empty tags, see "HTML concept ."

HTML Basic Schema:

The following HTML Source Code is the basic schema for an HTML file:

<HTML>
<HEAD>
<TITLE> title of page </TITLE>
</HEAD>
<BODY>
The content of the Web page, many of the tags are used for this
</BODY>
</HTML>


Feature Commentary:

    • the entire file is between Mark <HTML> and </HTML>.
      <HTML> to declare this HTML file so that the browser recognizes and processes the HTML file correctly.

    • documents are divided into two parts, from <HEAD> to </HEAD> called beginning ,<body> to </BODY> said This paper .
      Basically, both have the applicable tags, such as <TITLE> can only appear in the open part.

    • beginning part is used to store important information, and only This paper part will be displayed.
      So most of the tags are applied to this section.

    • <TITLE> indicates the title of the file.
      Appears at the top of the browser and is the name of the other Bookmark, so each page has a different face and a clear title is needed.

Only <BODY> parameters are set in the above tags.

 
<BODY>...</BODY>

Usage: Contains the contents of the document
Start/End identification: Optional/optional
Properties:%conreattrs,%i18n,%events
Background= "..." is opposed. The URL of a well-known background image
Bgcolor= "..." is opposed. Set Background color
Text= "..." is opposed. Set Text color
Link= "..." is opposed. Set the color of a link
Vlink= "..." is opposed. Set the color of a link when it is accessed
Alink= "..." is opposed. Set the color of the activation link
Internal event triggers when a document is loaded
onunload= internal event triggers for "..." Document Uninstall
Null: Not Allowed
Note: The text can only have one body, and it can only follow the head behind. The BODY element can be replaced by the FRAMESET element. Opposing the use of those related to visual properties facilitates setting the values of those properties in the format table.

Example:

<body Text= "#000000" link= "#0000FF" alink= "#FF0000" vlink= "#0000FF" Background= "Bg1.gif" bgcolor= "#FFFFFF" leftmargin=2 topmargin =2, Bgproperties = "fixed" >

  • text= "#000000"
    Used to set the text color. #000000 represents black, you can also use the name of the color, that is, text=. The values and names of the various colors can be referenced in the " Color principle " section.

  • link= "#0000FF"
    Sets the color of general text links.

  • ALink= "#FF0000"
    Set the text link color just when pressed.

  • vlink= "#0000FF"
    Sets the color of the link that is pressed.

  • background= "Bg1.gif"
    Set the background picture. GIF or JPEG can be either an absolute or a relative path.

  • bgcolor= "#FFFFFF"
    Setting the background color will lose its effect when the background image is set, unless the transparent part.

  • LeftMargin=2
    Set the entire file to display the left side of the screen space, the unit is pixel. (ie only)

  • topmargin=2
    Set up the entire file to show the image of the upper side of the edge space. (ie only)

  • bgproperties= "fixed"
    The background image is fixed and will not scroll when scroll is scrolled. (ie only)

Both the letter and the case of the tag and the parameter can be written. Other events, such as OnLoad, please refer to the introduction to Java Script.

 
<HTML>...<HTML/>

Usage: This element contains the entire document
Start/End identification: Optional/optional
Properties:%i18n
Version= "..." describes the URL that defines the document type, indicating the HTML version used to create the current document
Null: Not Allowed
Note: The version information is from the <! Doctype> in the statement, so this part is not essential.

 
<HEAD>...</HEAD>

Usage: To illustrate that this is the title of the document and contains other elements that provide information to users and search engines
Start/End identification: Optional/optional
Properties:%i18n
Progile= "..." where the URL indicates the address of the meta file
Null: Not Allowed
Note: There can be only one title per article. It must be behind the open HTML logo and in front of the body

 
<TITLE>...</TITLE>

Usage: Specify the name of your Web page. This element is placed in the head element and is displayed in the title bar of the browser window.
Start/End Identification: must/must
Properties:%i18n
Null: Not Allowed
Note: Only one title is allowed per document



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.