HTML page source code layout introduction
This introduction takes the screenshot of the Google homepage source code as an example:
Introduce from top to bottom in order:
<! Doctype html> This tag can inform the browser document which HTML or XHTML specifications are used. XHTML Specification: Essence, the labels are beginning to end, and the attributes also use double quotes. HTML specifications: do not distinguish between lower and small, start and end the label, you can also put the end label in the start label, such as: <input type = 'text' />. Attributes can be used for dual quotes and single quotes (must be paired). HTML node: The root node of the html page, the code information of the page is placed in this node. <head> node: head node. Including the following sub -nodes: <Mete> Tags: Meta-information of the page, such as page keywords; page keywords; <Title> Tags: Title of the page; <script> tags: regions of CSS and JavaScript code generally store; <body> Node: Page content area, store HTML elements information information <DIV> Tags: Storage of each element control. <script> tag: Because the HTML page is loaded from top to bottom, it is not to display the content once again, but to display the content while loading.Putting Script behind body is similar to explaining the code in this script to call the element in Body. If it is placed in the Head tag and running the script code here, the elements in the body have not been loaded, and the required element information will not be obtained.
The above is all the contents of this article. I hope it will be helpful to everyone's learning. I also hope that everyone will support VEVB Wulin.com.