Deep document.write () and HTML4.01 of the Non-Aligned label of the basic knowledge _

Source: Internet
Author: User

(i) Non-aligned tags in the HTML4.01:

Comment Label:<!--annotation Content-->

Strictly speaking, not HTML tags: <! Doctype> Document Declaration label

Set the:<meta> label for page meta information

Set the:<base> label for the relative directory of all links in the Web page (such as the root directory)

Line Wrap:<br>

Horizontal line:

Image:

Table cell Element <input>

A:<col> label that defines the properties of one or more columns in a tabular table

Defines the:<frame> label for a window of a frame

:<link> Link label that defines the relationship between a document and an external resource

"Query W3school income"

(ii) document.write ()

1, this method belongs to level 0 Don's part. Calling the method creates a new output stream with the contents as the parameter;

2, when called at the top of the script element, that is, when called outside the Window.onload event handle or the defer function, the method outputs the content when the parser resolves to it. The previous document will not be overwritten at this time.

3, when invoked in the Window.onload event handle or in the defer function, the output of the method overwrites the current document stream. This overwrites the previous document.

4. When the method is called continuously, the output is in the same output stream. When the output stream Document.close () is closed before the method is invoked, the method overwrites the document flow before it is closed. The Document.open () method creates a new output stream that overwrites 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.