Introduction to HTML code (2)

Source: Internet
Author: User

Description <!--* * *--> (Browser will not display)

File type declaration <! DOCTYPE HTML PUBLIC "-//ietf//dtd HTML 2.0//en" >

3.0 File Type declaration <! DOCTYPE HTML PUBLIC "-//w3o//dtd W3 HTML 3.0//en" >

Searchable <ISINDEX> (indicates searchable index entries)

N1.0 prompts <isindex prompt= "* * *" > (prompt text required to enter)

Send out search conditions <a href= "url?***" ></a> (where the question mark is not a number but a "question mark")

URL of the base file <base href= "url" > (must be placed in the "header" section)

N2.0 Basic window name <base target= "* * *" > (must be placed in the "Wen tou" section)

Relevance <link rev= "* *" rel= "* * *" href= "URL" > (must be placed in the "header" section)

Background information <META> (must be placed in the "Text Header" section)

Floating frame Mark IFrame, stewardess look oh [/color]

Your webpage must have banner, the column picture, the copyright and so on a lot of identical thing, for the website style unification, this is understandable, but there is no way, let these same thing once downloading then do not need to download again, and only download those content to change area of webpage content? People first think of frame tag frame, dividing the whole page into several frames. But frame can not arbitrarily specify the position of the frame, it must have at least one side of the page with the four sides coincide, flexibility is greatly affected. In order to be able to embed HTML files anywhere on the page, we can use frames to mark the frames of the brother floating frame of the IFRAME, although the Nestscape browser does not support the IFRAME tag, but in the current IE's world, this does not seem to be a serious obstacle.

An IFRAME tag, also known as a floating frame tag, that you can use to embed an HTML file in another HTML display. It differs from the biggest feature of the frame tag that the HTML file referenced by this tag is not displayed independently of the other HTML file, but can be embedded directly in an HTML file, merging with the content of the HTML file, and becoming a whole, in addition, You can also display the same content on one page more than once, without having to write the content repeatedly, or even embedding multiple HTML files in the same HTML file.

In the scripting language and object hierarchy, the window that contains the IFRAME we call it the parent form, and floating frames are called subforms, so it's important to understand the relationship, because the object hierarchy must be clear to access the parent form in the subform or subform in the parent form to access and control the form programmatically.

The following are the properties of the floating frame tag iframe:

First, the basic grammar:

<iframe>......</iframe>

The floating frame Mark IFrame must be in pairs, that is, there is a start tag <iframe>, and there must be an end tag </iframe>.

Two, floating frame mark the properties of the IFRAME:

1, file location:

Syntax: Src=url

Description: URL is the location of the embedded HTML file, can be a relative address, or it can be an absolute address.

Example:<iframe src="iframe.html">

2, Object name:

Syntax: name=#

Description: #为对象的名称. This property names the object so that other objects can take advantage of it.

Example:<iframe src="iframe.html" name="iframe1">

3, ID selector:

Syntax: id=#

Description: Specifies the unique ID selector for the tag.

Example:<iframe src="iframe.html" id="iframe1">

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.