Today boss said a website of the homepage under IE Show exception, view code found inside the head of the elements all ran into the body inside, and body of the first line is a pair of double quotation marks at the beginning. Ask Niang said is coding problem, Many people say is because the file encoding method for Utf-8 +bom format caused, so the file with notepad++ new file and UTF8 no BOM format encoding save, will save the file overwrite the previo
Definition and usage
The document header describes the attributes and information of a document, including the document title, its location on the web, and its relationships with other documents. Most of the data contained in the document header is not actually displayed to the reader as the content.
The following labels are available in the head section:
Label "target =" _ blank "href =" http://www.w3school.com.cn/tags/tag_link.asp ">
Internal mark of HTML file head (the most refined and complete)
I. Title webpage title.
Ii. meta tag
Note: The
According to HTML language standards, Meta Tags are very important for website development. They can be used to identify authors,Set the page format, label the content feed and keywords, and refresh the page.
Meta Tags are divided into two parts: HTTP-E
Definition
Send hidden information about the document to the server and client.Note
The meta element also embeds the document information used by some search engines to index and classify documents on the World Wide Web.
This element can only be used within the head element.
This element is available in HTML of Internet Explorer 3.0 and later versions, and in scripts of Internet Explorer 4.0 and later versi
Full contact with tag attributes in the HTML head [14:29:29 | Author: Todd
] Font size: Large
| Medium
| All the following small code is between
1. The title element helps you better identify one file. Name of a file when it is used as a homepage or favorites.
2. Show the relationship between this document and other documents: Rel = "stylesheet" href?“s.css ">Connect to the external style sheet.Rel describ
Specification | page | Page Head area refers to the content between Tags that must be added
1. Company Copyright note
2. Web page display Character set
Simplified Chinese: Traditional Chinese: English:
3. Web Page Creator Information
4. Introduction to the website
5. Search keywords
6. CSS specification for Web pages
7. Page Title
. You can choose to add a label
1. Set the expiration time of the We
If the page is only suitable for viewing on a computer, you can add If your webpage has a responsive design, you can include The role of the two tags in the head in the HTML tag
Key excerpt: HTML head element
label
Description
Defines the information for a document
Defines the title of the document
Defines the default link address for page link labels
Defines a relationship between a document and an external resource
Defines the metadata in an
Important thought shift: ML in HTML is a markup language, HT is a hypertext hypertext.The browser can display the text as long as it is in HTML format, but if you add some markup to the text, the browser reads it in the agreed way so that the text appears better and looks a little more structured. So it is the first text, and then the mark, with the mark is not enough, but also have HT, is hypertext, have l
and execution is complete. This is the root cause of JS blocking subsequent resource downloads.
Javascript execution may depend on the latest style.For example, there may be var width = $ ('# id '). width (). this means that before JavaScript code is executed, the browser must ensure that all css (both external and embedded) before this JS Code has been downloaded and parsed. This is the root cause of CSS
Direction
Dir
Specify language
Lang
Type property
Type
Media selection
Media
Title
Title
Character Set name
CharSet
Specify Link path
Href
Relationship between source document and target document
Rel
Relationship between the target document and the source document
Rev
Link window
Target
Mark
I
1 Meta - > can insert: Encode, jump, refresh, keyword, description, IE compatibleMetaCharSet= "UTF-8">encoded in the form of UTF-8Metaname= "KeyName"content= "Specific keywords">used to find keywords for search primersMetaname= "description"content= "Information describing what the site is used to do">Metahttp-equiv= "X-ua-compatible"content= "IE=IE9;IE=IE8;" />Designed for IE1 /> make icons, owe 2/> owe 3 -HTML
style, including but not limited:
Understanding the meaning and usage of common HTML tagsReasonable planning of HTML document structure based on design documentsUnderstand semantics and use HTML tags properly to build pagesMaster basic CSS coding, including but not limited:
Understand the definition, concept, and d
This morning to knock code, found that changed a half-day CSS did not respond, with style in the program line write down ~ completely can change, Chrome F12 found the problem ~ ~ so is not linked to the problem.Adjusted for half a day, put the question line into the QQ format, Exchange position and so on, and then get back also there is a problem.Good impact rate ~ quickly ask a Master ~hehe ~Well, it's going to be solved. ~Spirit said ~ Later do not
HTML structuring: Practice DIV + CSS webpage layout Getting Started Guide are you learning CSS layout? Isn't it possible to fully master the pure CSS layout? There are usually two ways to impede your learning:
The first possibility is that you have not understood the principle of
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.