The grammatical basis and rules of the HTM language

Source: Internet
Author: User

The main syntax for HTML is elements and tags. Elements are part of a document that conforms to a DTD (document type definition), such as title (document title), IMG (image), table (table), and so on. Element names are case-insensitive. HTML uses tags to specify the attributes of the element and its position in the document. Labels are separated by separate labels and paired occurrences of the label in both. Most of the labels are paired, with the first label and the tail tag. The format of the first label is the < element name, and the tail label is </element name >. A paired label is used to specify the range of elements contained in the element, such as <title> and </title> tags, which define the range of the heading elements, i.e. The section between <title>**</title> is the title of the HTML document. The format of the individual label is the < element name, and its function is to insert the element at the appropriate position. such as the <BR> tag indicates that a newline character is inserted where the label is located.

The

1, 2, <title> tags are paired. Used to specify the title of the HTML document. The content between <title> and </title> is displayed in the title bar of the Web browser window. For example:
<title> This is a test page </title>
<isindex> tag is a separate label that is used to specify the properties of the document, which indicates that the document 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>
</ Head>
<body>
where you can search for the index. Please type the keyword you want to search "is automatically added to IE browser." When a browser types a keyword to be queried in a blank text bar and presses ENTER to confirm, the cursor moves to that keyword or to the word that contains the keyword. At this point, the word matching the keyword Fu Yiliang blue.

The grammatical basis and rules of the HTM language

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.