In-depth explanation of non-paired tags of document. write () and HTML4.01 _ basic knowledge

Source: Internet
Author: User
This article describes the non-paired tags of document. write () and HTML4.01 in detail. For more information, see (1) unpaired tags in HTML4.01:

Annotation label:

Strictly speaking, it is not an HTML Tag: Document declaration tag

Set the page metadata: Tag

Set the relative directory (such as the root directory) of all links on the webpage:Tag

Line feed:

Horizontal line:

Image:

Form Element

Label that defines the attributes of one or more columns in a table

Defines the labels of a window of the framework.

Define the relationship between documents and external resources: Link tag

[Query W3School income]

(2) document. write ()

1. This method is part of level 0 DON. Call this method to create a new output stream with the content of this parameter;

2. When calling the top-level script element, that is, when calling the window. onload event handle or a place other than the defer function, this method will output this content when the parser parses it. In this case, the previous documents are not overwritten.

3. When calling the window. onload event handle or defer function, the output content of this method overwrites the current document stream. In this case, the previous document is overwritten.

4. When this method is called consecutively, the output content is in the same output stream. When the output stream document. close () is closed before the method is called, this method overwrites the previous document stream. The document. open () method creates a new output stream to overwrite the previous document stream.

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.