The grammatical basis and rules of HTML language

Source: Internet
Author: User
Tags object header range window
The main syntax for syntax HTML is elements and tags. Elements are part of a document that conforms to the DTD (document type definition), such as title (document title), IMG (image), table (table), and so on. The element name is case-insensitive. HTML uses labels to specify the attributes of an element and its position in the document. The labels are divided into separate labels and pairs of labels appearing on both. Most of the tags appear in pairs, with a first label and a tail tag. The first label format is the < element name, and the tail tag is formatted as </element name >. A pair of labels is used to specify the range of elements that the <title> and </title> labels use to define the range of heading elements, that is. The section between <title>**</title> is the title of the HTML document. The individual label is in the < element name, and its function is to insert the element at the appropriate position. A <BR> label indicates that a newline character is inserted where the label is located.

basic structure.
The 1,2,<title> tags are in pairs. Used to specify the title of an HTML document. The content between <title> and </title> will appear in the title bar of the Web browser window. For example:
<title> This is a test page </title>
The <isindex> tag is a separate label that is used to specify the attributes of the document that can be indexed by keyword, and we use a simple code to illustrate the role of the tag. You can copy the code to your own browser to see the effect.
<title> This is a "isinndex" case </title>
<isindex>
<body>
Where "You can search for the index. Please type the keyword you want to search for, which is automatically added by IE browser. When a viewer types a keyword to be queried in a blank text bar and presses ENTER to confirm, the cursor moves to the keyword or word that contains the keyword. At this point, the keyword matches the word Fu Yiliang blue.
3,<body> label. <body> tags are in pairs. The content between <body></body> will be displayed in the user area of the browser window, which is the main part of the HTML document. You can specify some basic properties for the entire document in the <body> tab:
·" BgColor ". Specifies the background color of the HTML document.
·" Text ". Specifies the color of text in an HTML document.
·" Link ". Specifies the color of the Hyperlink object to be attached to the HTML document.
·" ALink ". Specifies the color of a Hyperlink object in a connection in an HTML document.
·" Vlink ". Specifies the color in an HTML document to connect a Hyperlink object.
·" Background ". Specifies the background file for the HTML document.
When you specify a color object, you can use the code for that color or the English word that should be colored. For example, if we specify that the background color of the document is green, then it can be expressed as:<body> bgcolor= "green" or as <body bgcolor= "
List of available colors in the Document body section:
——————————————————————————————————————
name | Color | name | Color
——————————————————————————————————————
Black | Black | Red | Red
——————————————————————————————————————
Line | Stone Grey | Maroon | Maroon
——————————————————————————————————————
Gray | Grey | Silver | Silvery white
——————————————————————————————————————
Navy | Navy Blue | Olive | Olive-green
——————————————————————————————————————
Purple | Purple | Yellow | Yellow
——————————————————————————————————————
Aqua | Light Green | Blue | Blue
——————————————————————————————————————
Green | Green | Fuchsia | Purplish red
——————————————————————————————————————
White | White | Teal | Dark blue Green
——————————————————————————————————————

Well, that's it for today. We are looking back.
The basic structure of an HTML document is as follows:
<title> Document title </title>
<body> This is the main part of the HTML document </boay>
The The section between

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.